mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-25 04:56:23 +00:00
499 B
499 B
date | id | title |
---|---|---|
2020-11-04 | 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);