SPUG: your moment of regex zen..

Joseph Werner telcodev at gmail.com
Wed Jan 12 13:31:44 PST 2011


Counts the dot in a FQDN, while destroying the var contents:  ie:  '.'
 becomes '[.]'?


OK, it does something...

On Wed, Jan 12, 2011 at 1:10 PM, Fred Morris <m3047 at m3047.net> 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.
>
> --
>
> Fred the internet plumber
>
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
>     POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>    MEETINGS: 3rd Tuesdays
>    WEB PAGE: http://seattleperl.org/
>



-- 
I require any third parties to obtain my permission to submit my
information to any other party for each such submission. I further
require any third party to follow up on any submittal of my
information by sending detailed information regarding each such
submission to telcodev at gmail.com
Joseph Werner


More information about the spug-list mailing list