🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #702

Re: Need code to match strings with regular expressions

#702
From: Milan Richter
Date: Wed, 09 Sep 1992 20:55
15 lines
968 bytes
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.
Technical Details
Message-ID: <82362@bcsaic.boeing.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!bcstec!bcsaic!milan
References: <1992Sep7.094208.13949@odin.diku.dk> <513@tower1.uucp> <1992Sep8.200014.11691@usceast.cs.scarolina.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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