1. Regular Expressions

Has anyone written anything to help compare a string to a regular expression?

[\-+]?[0-9]+
[\-+]?[0-9]+\.[0-9]+
#[0-9A-F]+
[a-zA-z]+[_0-9a-zA-Z]*
The above being expressions for eu's integers, atoms, hex numbers and
identifiers respectively (I think).

I have been trying but getting nowhere fast.

Help me please (Sob Sob). I hope to produce EULEX and EUYACC.

Although at this rate I may work it differently.
-----
Sincerely,
Mathew Hounsell
Mat.Hounsell at Mailexcite.Com




Free web-based email, Forever, From anywhere!
http://www.mailexcite.com

new topic     » topic index » view message » categorize

2. Re: Regular Expressions

In wildcard.e is a wildcard_match function, I think.
You can use '?' and '*' .. however it only returns true or false..

Ralf

new topic     » goto parent     » topic index » view message » categorize

3. Re: Regular Expressions

On Sun, 6 Sep 1998, Mathew Hounsell wrote:

> Has anyone written anything to help compare a string to a regular expression?

I like regexps too. I even have a Unix book with a full list of how to use
them. Ralf's suggestion of using Wildcard.e may be a fairly good start
though...
I'd start work right now, but there's a snag. My net access gets cut off
(extremely likely anyway) from around the 22nd, so I wouldn't be able to
get a finished product to you... :(

If you want a command line tool (for DOS) that parses text files for
regexps, try looking for sed15x.zip or netsearching for SED. (Stream
EDitor).

Also, LEX (or more likely FLEX) and YACC (o.m.l. BISON) are out there
somewhere, for simpler DOS systems, and of course, there's the infamous
DJGPP (*choke*, huge!) package...

--
Carl R White
E-mail...: cyrek- at -bigfoot.com -- Remove the hyphens before mailing. Ta :)
Url......: http://www.bigfoot.com/~cyrek/
In my last few days on the net, I have room for a witty quote. Irony. :S

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu