RegEx to remove a part of numbers
-
Hello,
I have many lines like this:12345 1234567.890 123456.789 1234.567 text
I need to have this:
12345 4567.890 3456.789 1234.567 text
i.e. I need only 4 (four) numbers before the decimal at the 2nd and 3rd column
-
Try replacing
\d+(\d{4}\.\d+)
with\1
maybe? -
@Alan-Kilborn
Great, thank you very very much :)