tags:

views:

288

answers:

2
+1  A: 
([a-zA-Z]){20,}
Michał Niklas
Be careful: this won't work with extended charsets...
Stefan Gehrig
Of course it depends of author intentions. Sometimes \w is better, but remember that \w includes digits.
Michał Niklas
That's right - it really depends on the author's needs.
Stefan Gehrig
+3  A: 

Try this regular expression:

\b\w{20,}

Or if the implementation you are using supports Unicode character properties:

\b\p{L}{20,}
Gumbo
Shouldn't it be \w (lower-case W) to match any "word" character? \W will match any "non-word" character.
Stefan Gehrig
Of course, sgehrig, you’re right. Thanks!
Gumbo