The position of the (first of) last 2 non-? bytes that are followed exclusively by ?s to the end of the string:
$s =~ m[([^?]{2})[?]+$] and print $-[0];; 8
In reply to Re: finding the last occurence of substring in string
by BrowserUk
in thread finding the last occurence of substring in string
by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |