Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript regex wrap string

"Foo bar cat".replace(/(cat)/ig, "<em>$1</em>");
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #regex #wrap #string
ADD COMMENT
Topic
Name
4+3 =