Re: Regular Expressions
- Posted by mattlewis (admin) Feb 04, 2009
- 927 views
CraigWelch said...
I need to do some 'stuff' using regular expressions.
There seem to be two approaches:
- EuRegExp by Christian Cuvier
- A PCRE wrapper by Karl Bochert. Labelled as 'Windows', but PCRE is common on Linux so I assume it would work.
Has anyone used both, such that they could comment on the relative merits?
- EuRegExp: Unfortunately, doesn't work. At least, the latest version posted on the web, 0.91, has errors just parsing. I never got past that to see how the regex stuff actually performed.
- PCRE: You might need to change the open_dll()/define_c_* imports to get it working on Linux. But probably not difficult to get working.
- wxEuphoria: It's probably overkill, but it also supports regular expressions.
- Euphoria 4.0: Natively supports regular expressions. It's not ready for use in a production environment, but if you're just doing some one-off data munging, it would probably be fine.
Matt