For example, for
<span class=""><span class="">ABC USD
I want to find the shortest match between ">" and "USD", the correct match should be ABC , but Regex Tester wrongly generated a Regex which returns
<span class="">ABC
For example, for
<span class=""><span class="">ABC USD
I want to find the shortest match between ">" and "USD", the correct match should be ABC , but Regex Tester wrongly generated a Regex which returns
<span class="">ABC
Shortest match works from what searched text begin with, not from what goes before searched text
You should specify what searched text begin with
for example - (?<=>)\w.*?(?=USD)