[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp that solves this ?
From: |
weber |
Subject: |
Re: Regexp that solves this ? |
Date: |
Wed, 29 Aug 2007 11:54:30 -0700 |
User-agent: |
G2/1.0 |
On 29 ago, 15:31, Malte Spiess <i1tn...@arcor.de> wrote:
> weber <hug...@gmail.com> 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