I have this string:
" abalbal asldad 23 sadaskld 3123 adasdas "
How to match only the words, without numbers.. with " D* " I can match only the first two, without others..
" D* "
You can use this regex:
/[^dW]+/g
to match all words with no digits.
RegEx Demo
[^dW] will match any non-digit and (non-non-word) i.e. a word character.
[^dW]
1.4m articles
1.4m replys
5 comments
57.0k users