How about looping through as a spec delimmed list and cutting any list elements
larger than x characters long into two?
<cfloop list="#form.posted#" index="li" delimiter=" ">
<cfif len(li) gt xx>
<cfset form.posted =
replace(form.posted,li,left(li,round(xx/2))&"- "&right(li,ceiling(xx/2)))>
</cfif>
</cfloop>
Or loop over the LI string if it's really really really long, cutting it into
smaller chunks.
Mik
At 11:02 AM 3/20/2007, you wrote:
>I have a guestbook application in which I would like to restrict people from
>posting very large continuous strings.
>
>Ie.... something that would cause wordwrapping issues in a browser.
>
>People should not be posting URLs and stuff so I don't care about that.. I
>just want to *NOT* allow any comments with any strings of non-spaces more
>than X characters long.
>
>Can I do this with a regex? I mean, I know I could loop through character
>by character and run counts.. but that seems kind of tedious.
>
>Rick
>
>--
>CFMBB - Coldfusion Message Boards, Version 1.21 Now Available!
>http://www.cfmbb.org
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 and Flex 2
Build sales & marketing dashboard RIAâs for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273127
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4