If you don't need to match a full regex, you can use the index or rindex functions.$_ = "abcdmefg"; m/m/g; print "Matched 'm' at ", pos, "\n";
In reply to Re: position of the last match in RE
by chromatic
in thread position of the last match in RE
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |