Page 1 of 1

Dumb Question From TP7 Help

Posted: Wed May 15, 2013 3:59 pm
by kengrubb
In Regular Expression Syntax, it reads "In regular expressions, all characters match themselves except for the following special characters"

.[{()\*+?|^$

Sweet! I tended to escape any character I wasn't sure about in TP6 RE, so this will save me some time. However, is the list complete? Specifically these appear to be missing:

]}

Posted: Wed May 15, 2013 5:10 pm
by ben_josephs
Try it.

] is only special if it matches a preceding [.
} should be in the list.

Posted: Mon May 20, 2013 3:56 pm
by kengrubb
ben_josephs wrote:Try it.

] is only special if it matches a preceding [.
That was counterintuitive, but you are correct.

Perl RE syntax is reminding me of a line from the Clint Eastwood film, "Firefox".

"You cannot think in English and translate. You must think in Russian."