Incorrect use of ']'

Home Topic     Print this Topic

 

The character ] has been incorrectly used in the regular expression. In a regular expression ] is used with [ to define a set or range characters to be matched. To search for ] in a regular expression you must use \]

 

Examples

Te]xt

Error!

]

Error!

\]

will search for ]

[aei]

will match a, e or i