in reply to Making regex /g match continuously
This will match one or more repetitions of your int/Flaps/Address pattern followed by the end of the string.^ (?: ## added this (?:int)\s+(\w+)\s*?\n (?:\s*Number\sof\sFlaps:\s(\d+)\s*?\n)? (?:\s*IP\sAddress:?\s([\d\.]+)\s*?\n)? )+\Z ## changed your last line
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making regex /g match continuously
by Eimi Metamorphoumai (Deacon) on Jan 07, 2005 at 19:39 UTC |