Incorrect use of '^'

Home Topic     Print this Topic

 

The character ^ has been incorrectly used in the regular expression. In a regular expression ^ must either:

 

Be the first character where it represents the start of a line.
Follow a [ where it alters the meaning of the enclosed set.

 

To search for ^ in a regular expression you must use \^

 

Examples

Te^xt

Error!

^

Error!

\^

will search for ^

^Text

will search for Text at the beginning of a line