LANGUAGE » JAVASCRIPT

Regex

Usage

js
let reg1 = /[abc]/gu;
let reg2 = new RegExp('[abc]', 'gu');
MethodParamsReturn typeDescription
teststrbooleanSearches for a match between a regular expression and a specified string.