[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Regexp that solves this ?
From: |
Malte Spiess |
Subject: |
Re: Regexp that solves this ? |
Date: |
Wed, 29 Aug 2007 20:31:09 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux) |
weber <hugows@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