emacs-devel
[Top][All Lists]
Advanced

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

Re: using non-Emacs regexp syntax


From: David Kastrup
Subject: Re: using non-Emacs regexp syntax
Date: Wed, 29 Nov 2006 18:23:14 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux)

"Drew Adams" <address@hidden> writes:

>>     Is there a function to convert non-Emacs regexps (e.g. "ab(c+|d)" to
>>     Emacs regexps (example to "ab\(c+\|d\)")?
>>
>> The first form appears to be an "extended regexp" or egrep-style regexp.
>> The second appears to be a "basic regexp" or grep-style regexp.
>>
>> This conversion feature in Lisp would be useful to add after the release.
>
> Very glad to hear that.
>
> I'm hoping there will also be support for toggling the newline sensitivity
> of dot. This means a "doc-matches-newline" mode (aka "single-line" mode)
> where `.' will also match newline. Please see the thread "short regexp to
> match any character?" from 2006/03/04 and 03/11.

I don't know any other matcher where dot matches a newline.  Quite
more relevant would be inverse character ranges like [^A-Z] that do
_not_ match newline by default.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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