in reply to Re: Making regex /g match continuously
in thread Making regex /g match continuously
That is good info and really helps, the only remaining problem is that the following regex still succeeds in matching 'A' in the example data I provided.
Is there any way to pull it off where the whole regex fails that I am missing?\G ^(?:int)\s+(\w+)\s*?\n (?:\s*Number\sof\sFlaps:\s(\d+)\s*?\n)? (?:\s*IP\sAddress:?\s([\d\.]+)\s*?\n)? (?=^int|\Z)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Making regex /g match continuously
by Roy Johnson (Monsignor) on Jan 07, 2005 at 20:18 UTC | |
by scottb (Scribe) on Jan 07, 2005 at 20:23 UTC | |
by Roy Johnson (Monsignor) on Jan 07, 2005 at 20:39 UTC | |
by tye (Sage) on Jan 08, 2005 at 07:59 UTC | |
by Roy Johnson (Monsignor) on Jan 10, 2005 at 18:37 UTC | |
by scottb (Scribe) on Jan 07, 2005 at 22:02 UTC | |
by Eimi Metamorphoumai (Deacon) on Jan 07, 2005 at 20:37 UTC |