Reversing numbers in lines, have a regex already need to modify it : So @horucrux came up with an amazing regex to make all numbers in each line backwards, but it doesnt work in all lines only some lines get made backwards, i noticed some lines start with numbers and they dont get inverted and some with words in the middle dont work either, please  if anyone know hows to fix modify this regex, please help and thank you

Regex Horocrux provided


Step 1. Add a marker for the not-yet-inverted digits.

Find:

\b(\w+?)(\d+)\b

Replace:

$1§$2

You can choose other marker instead of §.


Step 2. Do Replace all enough times with these settings:

Find:

\b(\w+)§(\d*)(\d)\b

Replace:

$1$3§$2
Step 3. Delete all markers.

Find:

\b(\w+\d)§

Replace:

$1