You mean this, right?
$_ = "123patternABCpatternJJEK"; while ($_ =~ /(pattern)/gim) { push @array, $1; }
In reply to Re^2: Store multiple match single line
by ambrus
in thread Store multiple match single line
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |