Page 1 of 1

RegEx class operators not working! >:-O

Posted: Tue Jul 08, 2003 5:34 am
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??

Posted: Tue Jul 08, 2003 6:52 am
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

Posted: Tue Jul 08, 2003 12:09 pm
by brendanl79
Jens,

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

Brendan