Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex js

'string'.match(/regex/);
  console.log('The 1quick5'.match(/[0-9]/g)); // ['1', '5']

/regex/.test('string');
console.log(new RegExp('foo*').test('table football')); //true

Source by eloquentjavascript.net #
 
PREVIOUS NEXT
Tagged: #regex #js
ADD COMMENT
Topic
Name
3+2 =