LANGUAGE » JAVASCRIPT
Regex
Usage
js
let reg1 = /[abc]/gu;
let reg2 = new RegExp('[abc]', 'gu');
Method | Params | Return type | Description |
---|---|---|---|
test | str | boolean | Searches for a match between a regular expression and a specified string. |