-1

I would like to find dots/punctuations not surrounded by any numerics or alphanumerics (in other words surrounded by nothing) and replace these with nothing using Notepad++ and regex.

I tried using

(?<![a-zA-Z0-9]).(?![a-zA-Z0-9])

but it replaces all the numbers surrounding each dot with nothing.

How can this expression be adjusted appropiately for use in Notepad++ ?

1 Answers1

3

You need to escape the . character:

(?<![a-zA-Z0-9])\.(?![a-zA-Z0-9])
Nick
  • 4,901
  • 40
  • 61