SPUG: your moment of regex zen..

Bill Campbell bill at celestial.com
Wed Jan 12 14:43:09 PST 2011

On Wed, Jan 12, 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.

That's why vi(m) has undo.

INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186  Skype: jwccsllc (206) 855-5792

Under democracy one party always devotes its chief energies to
trying to prove that the other party is unfit to rule  and both
commonly succeed, and are right. -- H.L. Mencken

More information about the spug-list mailing list