regex - Emacs regexp replace situation -


on emacs

let have text:

abcd abcd. 23 . 2 important catching

with \. [[:digit:]] can catch pattern how replace without .

output should abcd abcd 23.

you use capturing groups retain numeral.

replace regexp:  \. ([[:digit:]]) replace regexp with:  \1 

the \1 refers numeral captured using ([[:digit:]]).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -