Character Class Operators
Posted: Mon Sep 03, 2001 10:52 pm
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
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