DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+8 =
Submit