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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -