- or download this
foreach ('abc' =~ /.+?/a) {
print "$_\n";
...
b
bc
c
- or download this
use Regexp::AllMatches;
...
while (my ($match) = $matcher->next) {
print "$match\n";
}
- or download this
* new
* clone
* next
- or download this
* prematch ($`)
* match ($&)
* postmatch ($`)
* group ($<*digits*>)
* groups
- or download this
* curr
* prev
* reset
* all