Words doesn't starts with numbers

Posted by pocoa on Stack Overflow See other posts from Stack Overflow or by pocoa
Published on 2010-04-28T13:59:20Z Indexed on 2010/04/28 14:13 UTC
Read the original article Hit count: 135

Filed under:
|

I have a string "one two 9three 52eight four", so I only want to get "one two four", because "three" starts with "9" and "eight" starts with "52".

I tried:

"(?!\d)\w+"

but it's still taking the "three" and "eight". I don't want it.

© Stack Overflow or respective owner

Related posts about regex

Related posts about python