Mark's Tech Stuff
Programming solutions, source code, solutions to tech problems and other tech related stuff.
Sunday, March 13, 2011
ReplaceAll in Javascript Example
ReplaceAll in Javascript Example:
Instead of:
mynicestring = mynicestring.replace("find","replacement");
Use:
mynicestring = mynicestring.replace(/find/g,"replacement");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment