home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.prolog:1684 comp.lang.c:13446
- Path: sparky!uunet!bcstec!bcsaic!milan
- From: milan@bcsaic.boeing.com (Milan Richter)
- Newsgroups: comp.lang.prolog,comp.lang.c
- Subject: Re: Need code to match strings with regular expressions
- Message-ID: <82362@bcsaic.boeing.com>
- Date: 9 Sep 92 20:55:21 GMT
- References: <1992Sep7.094208.13949@odin.diku.dk> <513@tower1.uucp> <1992Sep8.200014.11691@usceast.cs.scarolina.edu>
- Organization: Boeing Computer Services
- Lines: 14
-
- Thanks to all who replied to my request. I wasn't entirely clear about what
- I wanted: a procedure, let's say
-
- match_regexp( +String, +Regexp)
-
- that succeeds iff a character string String matches the regular expression
- Regexp. Both String and Regexp are represented as lists of characters.
-
- From the replies I received it appears that the best solution for me is to use
- the /usr/include/regexp.h code, as recommended by Arjen Duursma, and link it
- with my Quintus Prolog code.
-
- Thanks again for help.
-
- -- Milan Richter.
-