[Chicago-talk] Regular expression question

Sean Blanton sean at blanton.com
Mon May 4 07:44:15 PDT 2009


I'd try something like this (not tested)

s/\bEFt\b/EFT/


Sean Blanton, Ph.D.

Follow: http://www.twitter.com/seanblanton
Connect: http://www.linkedin.com/in/seanblanton



On Fri, May 1, 2009 at 6:08 PM, Michael Potter <michael at potter.name> wrote:

>  Mongers,
>
> What is the cleanest way to combine these three regular expressions:
>
> $Note =~ s/^Eft /EFT /;
> $Note =~ s/ Eft / EFT /;
> $Note =~ s/ Eft$/ EFT/;
>
> --
> Michael Potter
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20090504/45314c3a/attachment.html>


More information about the Chicago-talk mailing list