mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 13:06:22 +00:00
482 B
482 B
id | title |
---|---|
879b1425-8e59-4a5b-a2d8-08838e193b88 | JavaScript RegExp Exec Method |
exec1 returns null
if no match was found or an object with
information about the match otherwise:
let match = /\d+/.exec("one two 100");
console.log(match);
console.log(match.index);