sbac
sbac

Reputation: 2081

Using regex to delete a special symbol in emacs

I am trying to replace expressions like silva:2018 to silva2018using replace regex in emacs. I had tried something like [a-z]:[0-9] to find the expression (in this example a:2 but I don't know how to delete the symbol :.

Upvotes: 0

Views: 188

Answers (1)

Sean Bright
Sean Bright

Reputation: 120644

This is straight forward with Regexp Replacement:

M-x replace-regexp <RET> \([a-z]\):\([0-9]\) <RET> \1\2 <RET>

Upvotes: 4

Related Questions