I always have problems when running sed, especially with capture groups. I can never get the syntax right for non-trivial stuff.
I wish there was a sed-like tool that used python or javascript regex syntax!
I wish there was a sed-like tool that used python or javascript regex syntax!
Also see a2p (awk to perl) and find2perl.