RegEx class operators not working! >:-O

General questions about using TextPad

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

Post Reply
brendanl79
Posts: 2
Joined: Tue Jul 08, 2003 5:31 am
Location: Baltimore MD
Contact:

RegEx class operators not working! >:-O

Post by brendanl79 »

Hi all,

I'm running Textpad 4.6.2 unreg'd.

The whiny version of my problem is "Regular Expressions aren't working!!!"

Specific example:
The only class operator I've gotten to work is [0-9]. When I try to use the colon-enclosed class operators such as [:digit:] or [:space:], the finder searches literally for those characters (eg :,d,i,g,t).

RegEx box is checked, POSIX checkbox in Prefs is checked (default setting.)

What am I doing wrong??
Jens Hollmann
Posts: 26
Joined: Tue Mar 04, 2003 7:33 am

Post by Jens Hollmann »

Maybe you look for "[:digit:]" instead of "[[:digit:]]"?

Yes the whole "[:digit:]" stands for a class of characters (including the brackets) like "0-9" or "a-z".

So searching for some digits would be "[[:digit:]]+".

HTH

Jens
brendanl79
Posts: 2
Joined: Tue Jul 08, 2003 5:31 am
Location: Baltimore MD
Contact:

Post by brendanl79 »

Jens,

That is what I was doing wrong. Everything works now. Thank you! :)

Brendan
Post Reply