Nizam35
Nizam35

Reputation: 23

regex to get “words” containing only letters and neglect the combination of letters and numbers

I want to write a RegExpression to select only letters and neglect the combination of both letters and numbers.

Eg:

1 1023 IO1234H ENGINE OIL SERVO 1230 4203 58% 20% 

output :

ENGINE OIL SERVO

Upvotes: 1

Views: 40

Answers (1)

TheGeneral
TheGeneral

Reputation: 81513

You could use this

\b([a-zA-Z])*\b

Test it here


Explanation

enter image description here

Upvotes: 4

Related Questions