Regex to match a string that does not contain any words longer than 10 characters?

Posted by Mrgreen on Stack Overflow See other posts from Stack Overflow or by Mrgreen
Published on 2010-06-03T05:17:15Z Indexed on 2010/06/03 5:24 UTC
Read the original article Hit count: 237

Filed under:
^(.)+\S{10}(.)+$ 

I have that regex which will match any string that contains a word of 10 characters. However I need the INVERSE of that.
A regex that will only match strings which do NOT have words of >=10 characters.

© Stack Overflow or respective owner

Related posts about regex