Mega Code Archive
Categories
/
JavaScript DHTML
/
Language Basics
Lab for string replace() and string search()
Regular Expression Replace and Search
String Replace and Search with Regular Expressions
Text used for string.replace() and string.search() methods:
This is a test.
Enter a regular expression to match:
Case-sensitive
Enter a string to replace the matching strings:
Result: