unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* efficient regular expression that never matches
@ 2015-11-20  9:35 cinsk
  2015-11-20 15:13 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: cinsk @ 2015-11-20  9:35 UTC (permalink / raw)
  To: help-gnu-emacs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-21 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20  9:35 efficient regular expression that never matches cinsk
2015-11-20 15:13 ` Stefan Monnier
2015-11-20 15:59   ` John Wiegley
     [not found]   ` <mailman.342.1448035187.31583.help-gnu-emacs@gnu.org>
2015-11-21  5:52     ` cinsk
2015-11-21 15:04       ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).