1. Regular Expressions
- Posted by Mathew Hounsell <mat.hounsell at MAILEXCITE.COM> Sep 06, 1998
- 387 views
- Last edited Sep 07, 1998
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
2. Re: Regular Expressions
- Posted by Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> Sep 07, 1998
- 372 views
In wildcard.e is a wildcard_match function, I think. You can use '?' and '*' .. however it only returns true or false.. Ralf
3. Re: Regular Expressions
- Posted by "Carl R. White" <C.R.White at SCM.BRAD.AC.UK> Sep 07, 1998
- 382 views
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