regex - Regular expression for match all words without numbers -


i have string:

" abalbal asldad  23 sadaskld 3123 adasdas " 

how match words, without numbers.. " \d* " can match first two, without others..

you can use regex:

/\b[^\d\w]+\b/g 

to match words no digits.

regex demo

[^\d\w] match non-digit , (non-non-word) i.e. word character.


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -