home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / prolog / 1684 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  996 b 

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