RegExp.RegExp

RegExp RegExp (String pattern, String flags)

Parameters

pattern The pattern to convert.
flags Flags that control how the conversion is performed.

Description

Creates and returns a new RegExp object set to the value of the argument converted to a regular expression.