A couple of things I missed while helping you out earlier:
Instead of:
|p.i.
it should be
|p\.i\.
Otherwise, each period will match any character instead of a literal period.
Also, the modifiers at the end, instead of /gx, should be /gxi to enable case-insensitive matching.
LAI
__END__In reply to Re: regexp quandry
by LAI
in thread regexp quandry
by Ella
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |