06-21-07 06:25 PM
bpatton wrote:
[vbcol=seagreen]
[vbcol=seagreen]
> Thanks, works perfectly
If you actually used "[:space:]*COMMENT[:space:]*" then the reason
it "worked" is because it is equivalent to just "COMMENT". The "*"
matches _zero_ or more repetitions. The "[:space:]" does not match
a whitespace character, it matches ':', 's', 'p', 'a', 'c' or 'e'.
To match a whitespace character you need "[[:space:]]".
The equivalent of your PERL RE is:
"^[[:space:]]*COMMENT[[:space:]]*=[[:space:]]*\""
--
Geoff Clare <netnews@gclare.org.uk>
[ Post a follow-up to this message ]
|