[comp.emacs] regular expression alternatives

johnd@Stardent.COM (John R. Dennis) (05/25/91)

I would like to search for a number of possible regexps with one
regular expression search. Then identify which regexp alternative was
matched by testing the (match-beginning n) for nil. For example

(re-search-forward "\\(foo\\)\\|\\
-- 
John Dennis

================================================================================
Graphics Software, PEX Project Leader