- To: slug@xxxxxxxxxxx
- Subject: [SLUG] Regex - Not (^) in bracketed list [] does not work properly
- From: "V Kamakhya" <"v_kamakhya"@chennai.tcs.co.in>
- Date: Fri Nov 10 16:58:11 2000
---------------------- Forwarded by V Kamakhya/MLs/TCSCHENNAI on 10-11-2000
11:28 ---------------------------
Hi,
In a c file, I defined:
#define [^{]+[' ']+XYZ
The idea is to prevent occurence of '{' before XYZ
and used REG_EXTENDED in regcomp
I got the following output for valid and invalid patterns
a{ XYZ - Invalid
a{{ XYZ - Invalid
{a{ XYZ - Invalid
a{a XYZ - Valid -- how did this happen?
a{a{ XYZ - Invalid.
{a XYZ - Valid - how did this happen?
{aa XYZ - Valid - How did this happen?
I am thoroughly confused. Help!
Kam