Stephen Finley wrote:

<raf:custom_tag attribute="<%="This string has an escaped \" in it"%>"/>

it should get changed to the following?

<raf:custom_tag attribute="<%=\"This string has an escaped \\" in
it\"%>"/>

You are saying this is wrong: <raf:custom_tag attribute="<%="This string has an escaped \" in it"%>"/>

(It has
And this is right?
<raf:custom_tag attribute="<%=\"This string has
an escaped \\" in it\"%>"/>

This \\ escapes only the slash in \\" not the " so the result is unbalanced " " in the output -- is that what you want?

I think you need to test ahead for \" and skip changing it - maybe this:

s^(?!\s\\"\s)(\s\"\s)^\\$1^;


I'm confused... -Sx-

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to