If you're going to go and alter someone's input, I think it would be better to insert a hyphen (-) and a line break (or space) rather than just a space. This way at least there's some clue that something's been done and not that their words are just falling apart.
Darren Tracey > -----Original Message----- > From: Lindsay Evans [mailto:[EMAIL PROTECTED] > Sent: Friday, 13 June 2003 3:17 PM > To: CFAussie Mailing List > Subject: [cfaussie] RE: Insert spaces in long words...? > > > > There's a RegEx for every problem (and conversely, a problem > with every > Regex :) > > <cfscript> > function wordSplit(str, splitAt, splitChar){ > return REReplace(str, "([\S]{#splitAt#,#splitAt#})", > "\1#splitChar#", > "All"); > } > </cfscript> > <cfoutput>#wordSplit(str, 50, " ")#</cfoutput> > > There are probably cases where it wouldn't work though :) > > -- > Lindsay Evans. > Developer, > Red Square Productions. > > [p] 8596.4000 > [f] 8596.4001 > [w] www.redsquare.com.au > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > John Bishop > Sent: Friday, June 13, 2003 2:44 PM > To: CFAussie Mailing List > Subject: [cfaussie] RE: Insert spaces in long words...? > > > **************************************************************** > > This e-mail is subject to the disclaimer contained at the > bottom of this > message. > > ***************************************************************** > : > ...yea, that might do it.... > ;) > Thanks Ben, I'll give this a go :) And yeah, Taco, you're right - if > someone's messing with the system, they deserve to see crappy results. > Problem is, all the other users would see it too... > Cheers guys! > jb :) > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
