Barney Boisvert wrote:
> Give this a whirl:
> 
> REreplace(myString, "([^ #chr(9)##chr(10)##chr(13)#-]{72})", "\1 ", "all")

No, that doesn't seem to do anything...

This gets me closer:

REreplace(myString, "([\S]{72})", "\1 ", "all")

But doesn't exclude hyphens....

Rick


> 
> cheers,
> barneyb
> 
> On 8/2/05, Rick Root <[EMAIL PROTECTED]> wrote:
> 
>>Hi folks... I have an application that is sort of like a guestbook that
>>I threw together, and when people type in long strings without spaces,
>>it messes up my template.
>>
>>What's the best way to prevent that?
>>
>>I was thinking about looping through a comment as a list with a space
>>delimiter, and looking for strings longer than X characters.  That'd
>>probably work I'm just wondering if anyone has dealt with this issue and
>>had their own solution.
>>
>>Thanks
>>
>>Rick
>>
> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213533
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to