On Wed, Jan 14, 2009 at 2:16 AM, flexaustin <[email protected]> wrote: > Ok, this i killing me. I have down to this: > > \\\name:something\\soemthing\\ > > > How do I replace \\\ with \\ and all \\ with \.
I'm not sure how you ended up with those backslashes, but here's how
to replace two of those with a single one:
trace("\\\\".replace(/\\\\/g, "\\"));
Note: You have to escape them in string and regexp literals.
Manish
--
Visit me at manishjethani.com

