perlrequick, perlretutuse strict; use warnings; while (<DATA>) { while (/(\bSPORT\b.*?\bEND\b)/g) {print "$1\n"} } __DATA__ your long line here
In reply to Re: Regular Expression help
by toolic
in thread Regular Expression help
by garbage777
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |