I want to check that any user-submitted string does not contain a single "word" of more than, for example, 15 characters. If it does, I then want to capture that string. I use "word" in quotes as this applies to any string of non-whitespace characters (i.e. characters that don't cause new line wrapping - so the \s character instead of the \b character).
Being new to regular expressions, the expression I have tried to use is
\s([\S]{15,})\s
which doesn't seem to work. The various regexp archives I have browsed don't seem to have solutions for this problem.
Any help would be greatly appreciated.