Richard Stallman <[EMAIL PROTECTED]> writes: > Actually the only cases I can vaguely remember using the (/ > (length (match-data)) 2) idiom didn't use the whole > (match-data). They typically used the idiom in order to know > *which* subgroup matched (of course it only works if you craft > your regexp carefully). > > Can't you tell that more easily by seeing if match-beginning returns nil?
Which match-beginning? After (string-match "\\(a\\)\\|\\(b\\)\\|\\(c\\)" input) I can just consult (length (match-data)) for distinguishing between all three alternatives. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel