in reply to regex for negating a sequence
untested code$matched = undef; for($index=0,$index<11;$index+=2) { if(substr($test_string;$index,2) eq "ab") { $matched = 1; last; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex for negating a sequence (lookaheads and lookbehinds are now fast)
by grinder (Bishop) on Oct 04, 2006 at 14:53 UTC |