Colin Johnstone wrote: > > Gidday all, Hello,
> I have a paragraph of text, I want to convert any double quotes around
> quoted text to \" is this the correct reg ex
>
> $paragraph =~ s{\"}{\\"}g;
Yes that will work although you don't need to backslash the quote in the
regular expression.
$ perl -le'$_ = q[one "two" three]; s{"}{\\"}g; print'
one \"two\" three
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
