Dumb Question From TP7 Help

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Dumb Question From TP7 Help

Post 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:

]}
(2[Bb]|[^2].|.[^Bb])

That is the question.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Try it.

] is only special if it matches a preceding [.
} should be in the list.
User avatar
kengrubb
Posts: 324
Joined: Thu Dec 11, 2003 5:23 pm
Location: Olympia, WA, USA

Post 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."
(2[Bb]|[^2].|.[^Bb])

That is the question.
Post Reply