From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: weber Newsgroups: gmane.emacs.help Subject: Re: Regexp that solves this ? Date: Wed, 29 Aug 2007 11:54:30 -0700 Organization: http://groups.google.com Message-ID: <1188413670.422001.129210@d55g2000hsg.googlegroups.com> References: <1188410850.043231.264250@d55g2000hsg.googlegroups.com> <87bqcqdwgi.fsf@kirt.news.arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1188416598 11642 80.91.229.12 (29 Aug 2007 19:43:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 29 Aug 2007 19:43:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 29 21:43:15 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IQTRO-0003qR-Hw for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2007 21:43:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IQTQa-0008Ps-VG for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Aug 2007 15:42:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-NNTP-Posting-Host: 201.21.201.198 Original-X-Trace: posting.google.com 1188413670 19611 127.0.0.1 (29 Aug 2007 18:54:30 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 29 Aug 2007 18:54:30 +0000 (UTC) In-Reply-To: <87bqcqdwgi.fsf@kirt.news.arcor.de> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 fw.datacom-telematica.com.br:3128 (squid/2.5.STABLE6) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=201.21.201.198; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:151427 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46950 Archived-At: On 29 ago, 15:31, Malte Spiess wrote: > weber writes: > > Hi folks. > > I'd like to know if there is a simple way to replace regexp a file to > > convert tables like this: > > > | name | value | > > | x1 | 1001 | > > | x2 | 2002 | > > > to this > > > || name | value | > > | x1 | 1001 | > > | x2 | 2002 | > > I don't really see what exactly you want to replace... > "| name" by "|| name" ? Probably not... > > > The problem is having a regexp that depends on the next line. > > Well, this is no problem. Just type C-q C-j to get a newline in the > minibuffer. > > > Ideas? > > -weber > > Greetings > Malte Yes, exactly. I'm converting between org-mode tables and another format (t2t) which uses similar tables. Greets, weber