HP3000-L Archives

June 2002, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ted Ashton <[log in to unmask]>
Reply To:
Ted Ashton <[log in to unmask]>
Date:
Fri, 28 Jun 2002 15:08:25 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Thus it was written in the epistle of John Korb,
> I need to provide an interface where the user can enter a regexpr and only
> those records (from an IMAGE database) which match the regexpr are
> listed/dumped to a file.
>
> Is there a procedure callable from MPE languages where you pass it a string
> containing a regular expression (regexpr) and a string containing text to
> be tested with the regexpr and the procedure returns either a "TRUE"
> (matches regexpr) or "FALSE" (doesn't match regexpr), or better yet, if it
> matches the regexpr returns the offset to where the match was found?

Obviously, writing your application in Perl would provide you that ability.  I
don't know of a regex library call/intrinsic built into MPE, but there are
freeware regex libraries which could, probably very easily, be ported.  An
example is

  http://www.gnu.org/directory/rx.html

Ted
--
Ted Ashton ([log in to unmask]), Info Sys, Southern Adventist University
          ==========================================================
Every mathematician worthy of the name has experienced ... the state of
lucid exaltation in which one thought succeeds another as if miraculously...
this feeling may last for hours at a time, even for days. Once you have
experienced it, you are eager to repeat it but unable to do it at will,
unless perhaps by dogged work...
                         -- Weil, Andre (1906 -?)
          ==========================================================
         Deep thought to be found at http://www.southern.edu/~ashted

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2