I would like to replace a two-line string not ending in digit with a one line string. For example, replacing the following two-line string:
Extensions of the Single—Sa1e
Model 414
With a one line string:
Extensions of the Single—Sa1e Model 414
Using M-x
replace-regexp
.
My regex pattern to match is [^[:digit:]]^J
, but I don't know how to capture the non digit part and then refer it in the replace string. How can I do this? Also, how can I specify the new line character?