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

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

efficient regular expression that never matches


From: cinsk
Subject: efficient regular expression that never matches
Date: Fri, 20 Nov 2015 01:35:32 -0800 (PST)
User-agent: G2/1.0

hi,

Is there any special regular expression string that never matches
anything?

I'm thinking of "$a", but it should scan all the string until end
of the string, so it may not be efficient.

Is there any short, efficient regular expression that never
matches anything? (it's okay with Emacs-specific regular
expression, since I'm going to use it with `directory-files' or
`string-match' function)
 
Thank you.


reply via email to

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