I am working on to replace all digits in my data source with "numbr". Some examples are
- 1234-546-234235-1232-1242-123124 -> numbr
- 125436 -> numbr
- abc1231241 -> abcnumbr
I have tried using re.sub(r'(\d+[/-]*\d+)(R?)', "numbr", token) but it is not doing replacement for example 1 properly. Any ideas of what I am missing ?