Tries to parse a string as a regular expression
The string to parse
Optional
Flags to set on the parsed Regular Expression if it does not have its own
Tries to parse a string as a regular expression