Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regular expression javascript

console.log(/'d+'/.test("'123'"));
// → true
console.log(/'d+'/.test("''"));
// → false
console.log(/'d*'/.test("'123'"));
// → true
console.log(/'d*'/.test("''"));
// → true
Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged: #regular #expression #javascript
ADD COMMENT
Topic
Name
4+6 =