tkroll@hawaii.edu$line = "start this is the start this is another end first end start h +ello start inside of hello end there end"; while ($line=~ s/\s*\bstart\b(?!.*?\bstart\b) (.+?) \bend\b//) { print $1, "\n"; }
In reply to Re: How do I extract all text between two keywords like start and end?
by Anonymous Monk
in thread How do I extract all text between two keywords like start and end?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |