my @results; push @results, "$1$2" while $str =~ /(\S+\s+\Q$word\E)(?=(\s+\S+))/g; print "$_\n" for @results;
In reply to Re: Regular Expression rematch
by ikegami
in thread Regular Expression rematch
by dlw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |