in reply to Regex Needed
m/(\w+) (?=FOUND)/g;
have a look at perldoc perlre where look-ahead is mentioned. The example there quite matches your problem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex Needed
by TilRMan (Friar) on Mar 25, 2004 at 02:15 UTC | |
|
Re: Re: Regex Needed
by ysth (Canon) on Mar 25, 2004 at 02:07 UTC |