Member predicate StringLiteral::asRegExp

Gets the value of this string literal parsed as a regular expression, if possible.

All string literals have an associated regular expression tree, provided they can be parsed without syntax errors.

RegExpTerm asRegExp()