on emacs
Let say that I have this text:
abcd abcd. 23 where . 2 is important for catching
With \. [[:digit:]] I can catch pattern but how to replace without .
Output should be abcd abcd 23.
You could use capturing groups to retain the numeral.
Replace regexp: \. ([[:digit:]])
Replace regexp with: \1
The \1 refers to the numeral captured using ([[:digit:]]).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With