completely untested, but you could also try something like
this:
reFind("^\s{26,#len(input)#}",input)
i don't have the docs in front of me right now, but basically
you're saying
"something that's not a string from 26 chars on up to however
long your
total string is. i can't remember the notation for "not....",
i think it's
the caret but not sure.
"MikerRoo" <webforumsuser@macromedia.com> wrote in
message
news:el7kqp$4pj$1@forums.macromedia.com...
> See the attached.
>
>
> <CFSET sRawStrList =
'Supercalifragilisticexpialidocious, '
> & 'Trinitrophenylmethylnitramine, '
> & 'Trinitrophenyl-Methyl-Nitramine, '
> & 'Antidisestablishmentarianism, '
> & 'Deoxyribonucleic Acid, '
> & 'Bob, '
> & '<a
>
href="I%20am%20a%20properly%20encoded%20url%20but%20won%27t%20cause%20wrap%20pro
> blems%2Ehtm">Click Me! I dare ya.</a>'
> >
>
> <CFSET iMaxWordLength = 25>
>
> <CFOUTPUT>
> <h3>Should work with all CF MX
versions.</h3>
>
> <table>
> <tr>
> <th>String</th>
> <th>Has "word" longer than
#iMaxWordLength#
> characters?</th>
> </tr>
> <CFLOOP index="sRawWord" list="#sRawStrList#">
> <tr>
> <td>#sRawWord#</td>
> <td>
> <CFIF REFind ("\S{#iMaxWordLength#}", sRawWord)>
> <!---
> \S MUST be uppercase. --->
> yes
> <CFELSE>
> no
> </CFIF>
> </td>
> </tr>
> </CFLOOP>
> </table>
> </CFOUTPUT>
>