Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
why doesnt
if (/^\s*(?!for all)(\w+)\s*:\s*(\w+)\s*(?!<=)/i) {
match
cidr_enable: en_core_id <= NOT(dsp_reset_n);
it's got something to do with the \s*(?!<=) bit but I cant figure it out, It's doing my head in
BTW What I really want is \s*(?![<:]=) but one step at a time
update (broquaint): added <code> tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: negative lookaheads doing my 'ead in
by BrowserUk (Patriarch) on Nov 08, 2002 at 11:09 UTC | |
by Anonymous Monk on Nov 08, 2002 at 11:24 UTC | |
by BrowserUk (Patriarch) on Nov 08, 2002 at 11:42 UTC | |
|
Re: negative lookaheads doing my 'ead in
by Jasper (Chaplain) on Nov 08, 2002 at 11:30 UTC |