SPUG: your moment of regex zen..

John W. Krahn jwkrahn at shaw.ca
Wed Jan 12 16:47:07 PST 2011


Fred Morris wrote:
> I typed this while munging FQDNs (hostnames to normal folk) for subsequent use
> in regexes. Then I stared at it.
>
>    s/[.]/[.]/go
>
> Yes, it does do something.

Most of it does something, the /o option is superfluous.


John
-- 
Any intelligent fool can make things bigger and
more complex... It takes a touch of genius -
and a lot of courage to move in the opposite
direction.                   -- Albert Einstein


More information about the spug-list mailing list