in reply to Regular Expression help
perlrequick, perlretutuse strict; use warnings; while (<DATA>) { while (/(\bSPORT\b.*?\bEND\b)/g) {print "$1\n"} } __DATA__ your long line here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expression help
by 7stud (Deacon) on Nov 05, 2009 at 22:39 UTC | |
|
Re^2: Regular Expression help
by colwellj (Monk) on Nov 05, 2009 at 22:40 UTC | |
by 7stud (Deacon) on Nov 05, 2009 at 22:56 UTC | |
by toolic (Bishop) on Nov 06, 2009 at 00:15 UTC |