Oh man- *blushes* yes that worked.

Thanks

On 7/22/05, Alexey N. Solofnenko <[EMAIL PROTECTED]> wrote:
> You do not have to escape back slashes in XML - just put "\r\n".
> 
> - Alexey.
> 
> Chad Armstrong wrote:
> > Hello all,
> >   Today seems to be regular expression day on the list, so here is my input 
> > ;)
> >
> >   I have a block of code in my build script:
> >
> >     <script language="javascript">
> >     <![CDATA[
> >       strResourceDef = project.getProperty("MSVC.Pre-Link.RESOURCE_DEF");
> >       strReplace = strResourceDef.replaceAll(";","\\r\\n");
> >       project.setProperty("RESOURCE_DEF_REPLACE", strReplace);
> >     ]]>
> >     </script>
> >
> >   What this is supposed to do is is transform a string like
> > string;string;string; into string\r\nstring\r\nstring\r\n, but the
> > above transforms to stringrnstringrnstringrn, and using \r\n or
> > \\\r\\\n causes actual newlines to be output, which is not what I
> > want. I've tried using entities as well and they just get output
> > verbatim.  Any clues?
> >
> > thanks
> > Chad
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> ------------------------------------------------------------------------
> / Alexey N. Solofnenko
> home: http://trelony.cjb.net/
> /
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to