Character Class Operators

General questions about using TextPad

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

Post Reply
Peter Goodall

Character Class Operators

Post by Peter Goodall »

Greetings,

I have file which represents my environment variables in Win2K - looks like this:

ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\goodallp\Application Data
CLASSPATH=C:\Alinc\lib\Generate.jar;C:\Alinc\lib\LINCViewer.jar;C:\Alinc\lib\LINCApplet.jar;C:\Alinc\lib\WSGenerator.jar;C:\Alinc\lib\ASPGenerator.jar
CommonProgramFiles=C:\Program Files\Common Files
...

I have tried to match the part of each line which looks to me like:
^[[:alpha]]+=
I get cannot find R.E. same as above

I also can't match [[:alpha]] at all, or any other class expression. I've tried POSIX and not.

I'm not an expert in REs. Help appreciated.

--Peter Goodall
Jens Hollmann

Re: Character Class Operators

Post by Jens Hollmann »

I think you simply forgot the ":" after "alpha". Try
^[[:alpha:]]+=
That should work.
Post Reply