Reads typed or selected text as a regex.
Either a literal such as /ab+c/gi, optionally surrounded by whitespace, or a bare pattern.
/ab+c/gi
The regex; bare patterns have no flags. The pattern is not validated.
Reads typed or selected text as a regex.