How do I strip numbers that are not next to letters in a string, for example
"13 Some Street, Some Place, PE15 0TZ"
In this case I want to remove the 13 only, not the numbers in the post code.
"M1, Some Place, PE15 0TZ"
In the above case it would not remove anything as all numbers are next to letters.
I have found lots of code that can strip numbers from strings (.replace(/\d+/g, '')
) but none that take its neighbours into account