Guest User

Untitled

a guest
Dec 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. 'hello my name is diewland'.replace(/(diewland|name)/g, "<span class='hl'>$&</span>")
  2. // "hello my <span class='hl'>name</span> is <span class='hl'>diewland</span>"
Add Comment
Please, Sign In to add comment