Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uwm.edu!psuvax1!hsdndev!husc6!genrad!stardent!johnd From: johnd@Stardent.COM (John R. Dennis) Newsgroups: comp.emacs Subject: regular expression alternatives Message-ID: <1991May25.134015.298@Stardent.COM> Date: 25 May 91 13:40:15 GMT Article-I.D.: Stardent.1991May25.134015.298 Organization: Stardent Computer, Concord MA Lines: 10 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