[lug] Regex Help
Brennen Bearnes
bbearnes at gmail.com
Sun Jul 10 15:20:38 MDT 2011
On Sun, Jul 10, 2011 at 7:18 AM, Jeffrey S. Haemer <jeffrey.haemer at gmail.com
> wrote:
(2) If I'm debugging a regex, I never do it in the program. I do it on the
> command line with this idiom:
>
> $ *perl -ne 'print if s(regex)(XXXXX)'*
>
>
To this, I'll add that if you're using a tool or language with regex support
based on PCRE (www.pcre.org), it may be worth checking out pcretest(1).
I mention this mostly because I have been bitten on more than one occasion
by ways in which "Perl Compatible Regular Expressions" are not.
-- Brennen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20110710/2fdf1c42/attachment.html>
More information about the LUG
mailing list