in reply to
sed regexp works on the command line, but not from Perl script
It seems to me that the escaping backslashes are almost certainly the issue here. no?
But like the other guy says, why not rewrite it in perl?
Comment on
Re: sed regexp works on the command line, but not from Perl script
In Section
Seekers of Perl Wisdom