Syntax
regexp.compile(pattern, flag)
The compile() method of the RegExp object compiles a regular expression object.
The creation of the object takes pattern and flags parameters.
The pattern is a valid regular expression.
The flags are either or both g (global) and i (ignore case).