emacs-devel
[Top][All Lists]
Advanced

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

Re: Patch for lookaround assertion in regexp


From: Andreas Schwab
Subject: Re: Patch for lookaround assertion in regexp
Date: Mon, 23 Jan 2012 17:14:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Tom <address@hidden> writes:

> Andreas Schwab <schwab <at> linux-m68k.org> writes:
>
>> 
>> Tom <adatgyujto <at> gmail.com> writes:
>> 
>> > Why not use simply PCRE with a bridge layer which translates from emacs
>> > regexp format to PCRE? AFAIK the emacs regexes are more or less a subset
>> > of PCRE, so the translation shouldn't be very difficult.
>> 
>> Does PCRE implement \c and \s?  
>
> If it doesn't then it's a job for the translation layer. Char syntaxes
> and categories could be converted into the standard [...] format.

Enumerating the syntax/category members is not an option.  There is no
easy way to do that.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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