My text is:
120 something 130 somethingElse Paris
My goal is to capture 130 somethingElse Paris which means only the last occurrence of number BEFORE Paris
I tried:
\d+.*Paris
But this captures the WHOLE string (from first occurrence of digit)
The rule is:
- Capture everything before
Parisuntil first occurrence of digit is found.
Any clue ?
regards
You should add a ? after the * to make it un-greedy. Like this: