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

  1. Xref: sparky comp.lang.prolog:1675 comp.lang.c:13325
  2. Path: sparky!uunet!mcsun!sun4nl!disnet!arjen
  3. From: arjen@disnet.uucp (Arjen Duursma)
  4. Newsgroups: comp.lang.prolog,comp.lang.c
  5. Subject: Re: Need code to match strings with regular expressions
  6. Message-ID: <513@tower1.uucp>
  7. Date: 8 Sep 92 12:12:56 GMT
  8. References: <82078@bcsaic.boeing.com>
  9. Organization: Disnet, IDE Maassluis, The Netherlands
  10. Lines: 17
  11.  
  12. milan@bcsaic.boeing.com (Milan Richter) writes:
  13.  
  14. >I am looking for a public domain code for matching strings with regular
  15. >expressions. Essentially, given a string and a regular expression (such as,
  16. >e.g., are used in emacs), I want to tell whether they match.
  17. I don't know about emacs, but if their regular expressions are anything
  18. like ed,sed,vi, expr ..... (insert lots of other unix tools), then the
  19. source code is in /usr/include/regexp.h on any decent unix machine. Some
  20. of the routines must however still be added (like getc()?). I've used it
  21. in several applications and it works just fine.
  22. There are also a few functions like regex and regcmp but personaly I
  23. prefer the basics.
  24.  
  25. If you need help, just mail.
  26.  
  27. Arjen
  28.  
  29.