|
Question:
How to find and replace multiple strings?How to find multiple strings in my html, for example:
And how can I replace the words "string" ... like this: ..or with other word?
There is direct function in javascript "replace" which uses regular expression. Option "g" is included at the end of regular expression to indicate to replace all occurances. You can insert "i" option to make search case insensitive.
Here is complete HTML example: You can read more here : http://www.w3schools.com/jsref/jsref_replace.asp Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|