regex - Match all numeric characters without letters before or after -


i try this:

\d+(?![a-za-z]+[0-9])\d+ 

but string:

azeaze4 t4 45-azej565 5t 555t 44444 

i want find:

45 44444 

you can use \d+ within word boundary :

\b\d+\b 

see demo https://regex101.com/r/kh4cv5/1


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -