An undesired operator does not mean the shortest match:
abcabk
a.+?k will match the entire line (in this example), and not just the last three characters.
I would like to find the smallest possible match.
This is that the last possible match for ' a ' should allow all matches for k .
I guess the only way to do this is to use an expression like:
a[^a]+?k
Jonathan Jan 31 '14 at 11:22 2014-01-31 11:22
source share