Article View: comp.lang.prolog
Article #695Re: Need code to match strings with regular expressions
From: Arjen Duursma
Date: Tue, 08 Sep 1992 12:12
Date: Tue, 08 Sep 1992 12:12
16 lines
1100 bytes
1100 bytes
milan@bcsaic.boeing.com (Milan Richter) writes: >I am looking for a public domain code for matching strings with regular >expressions. Essentially, given a string and a regular expression (such as, >e.g., are used in emacs), I want to tell whether they match. I don't know about emacs, but if their regular expressions are anything like ed,sed,vi, expr ..... (insert lots of other unix tools), then the source code is in /usr/include/regexp.h on any decent unix machine. Some of the routines must however still be added (like getc()?). I've used it in several applications and it works just fine. There are also a few functions like regex and regcmp but personaly I prefer the basics. If you need help, just mail. Arjen
Technical Details
Message-ID:
<513@tower1.uucp>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!disnet!arjenReferences:
<82078@bcsaic.boeing.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!disnet!arjen From: arjen@disnet.uucp (Arjen Duursma) Newsgroups: comp.lang.prolog,comp.lang.c Subject: Re: Need code to match strings with regular expressions Message-ID: <513@tower1.uucp> Date: 8 Sep 92 12:12:56 GMT References: <82078@bcsaic.boeing.com> Organization: Disnet, IDE Maassluis, The Netherlands Lines: 17