Remove Numerical Value
I want to use regex expression with Notepad++ to delete any number which is directly next to a character like this:
I want it to look like this:
Terry R last edited by
delete any number which is directly next to a character
Using the Replace function we have
As this is a regex we need search mode as regular expression
Given the small amount you have provided this works. However there may be other instances where you don’t want it to work, such as when you have
what123Testfor example. If so you need to provide better explanation of the circumstances to edit and where to NOT edit.
OK thanks. It does work with these:
However it also finds numbers in the article like:
38 and 39 degrees
and it changes them to
8 and 9 degrees
So, how can i use a regex which only affects numbers which are directly next to a text value only rather numbers next to a numerial value.
Terry R last edited by Terry R
Actually sorry, I did put you slightly wrong as
\wrefers to a longer list of characters rather than JUST a-z.
The `(?i) allows it to work with both upper and lower case a-z characters.
Also note this will pick up multi digit numbers preceding a character.
It works, Thanks alot Terry. Be blessed