-
Please Help, replacing \/?
Im making a program that gets a hold of a string that uses this:
\/\/
I simply want all \ removed from the string, can anyone give me a surefire way thats simple and not big?
I need this to work:
trace(tempSplit2[0].replace("\", ""));
-
half as fun, double the price
-
Try this...
Code:
var stringToProcess = "\/\/abc\/\/def\/\/ghi\/\/";
trace(stringToProcess.replace("\\", ""));
// Prints //abc//def//ghi//
-
Senior Member
I love how Senocular speaks regexp as a second language...
-
half as fun, double the price
I may be able to speak it, but when others talk to me in it, I can't understand a word they're saying
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|