Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

using regex in javascript

//Adding '/' around regex
var regex = /s/g;
//or using RegExp
var regex = new RegExp("s", "g");
Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged: #regex #javascript
ADD COMMENT
Topic
Name
2+6 =