Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

regexp-opt-group

0 views
Skip to first unread message

Johan Bockgård

unread,
Jan 18, 2003, 5:21:48 PM1/18/03
to gnu-em...@prep.ai.mit.edu

regexp-opt-group is a compiled Lisp function in `regexp-opt'.
(regexp-opt-group STRINGS &optional PAREN LAX)
Return a regexp to match a string in STRINGS.


(regexp-opt-group '("000" "this string is missing" "foo"
"0this occurs twice"))
==>

"0\\(?:00\\|this occurs twice\\)\\|foo\\|0this occurs twice"


This isn't correct, is it (GNU Emacs 21.2.1)?


/Johan


0 new messages