in reply to finding the last occurence of substring in string
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: finding the last occurence of substring in string
by gri6507 (Deacon) on Jul 26, 2012 at 16:28 UTC | |
by BrowserUk (Patriarch) on Jul 26, 2012 at 16:40 UTC |