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]
2.1m questions
2.1m answers
60 comments
57.0k users