๐ฐcreating regex
๐ง under construction
JS โฉ value โฉ object โฉ regex โฉ create
creating RegExp object.
const re = /ab+c/; // regular expression literal (static)
const re = new RegExp('ab+c'); // RegExp constructor (dynamic)
Last updated
Was this helpful?