help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regexp-builder shows matches, re-search-forward fails?


From: Tassilo Horn
Subject: Re: regexp-builder shows matches, re-search-forward fails?
Date: Thu, 26 Jul 2012 15:24:56 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux)

Thorsten Jolitz <tjolitz@googlemail.com> writes:

>> What's reb-copy?
>
> it copies the regexp from regexp-builder for use in an elisp function,
> thats what I need.

Ah, I didn't know that.  And you are using re-search-forward in a
program, not interactively.  Well, in that case, the regex syntax are
identically, i.e., you can kill the "<regex>" from the re-builder prompt
and yank it into (re-search-forward "<regex>" nil t) and it should just
work.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]