all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Regexp that solves this ?
Date: Wed, 29 Aug 2007 11:54:30 -0700	[thread overview]
Message-ID: <1188413670.422001.129210@d55g2000hsg.googlegroups.com> (raw)
In-Reply-To: <87bqcqdwgi.fsf@kirt.news.arcor.de>

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

  reply	other threads:[~2007-08-29 18:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-29 18:07 Regexp that solves this ? weber
2007-08-29 18:31 ` Malte Spiess
2007-08-29 18:54   ` weber [this message]
2007-08-29 18:37 ` Emilio Lopes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1188413670.422001.129210@d55g2000hsg.googlegroups.com \
    --to=hugows@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.