Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!nikhefh!a38 From: a38@nikhefh.nikhef.nl (James Barr) Newsgroups: comp.lang.c Subject: Looking for pattern matchers Keywords: pattern, regex Message-ID: <1156@nikhefh.nikhef.nl> Date: 22 Feb 91 14:01:28 GMT Sender: a38@nikhef.nl (James Barr) Organization: Nikhef-H, Amsterdam (the Netherlands). Lines: 19 Hi, can anyone point me towards a regular expression matcher that acts like lex in that you can add a number of different expressions so that a token is returned on matching a particular expression. I could do it simply by calling re_exec or the like sequentially for each expression, but this is a bit inefficient. I'd like to be able to add and remove expressions dynamically. Cheers, james -- James Barr ............... ...... +31 20-592-5104 ........... .......... James.Barr@nikhef.nl ...... .............. NIKHEF, Kruislaan 409, 1009DB Amsterdam .. ..................