Did the trick. Thanks. Also noticed I was  attempting to replace multiple spaces with 
nothing. Might of caught that
if my RE had worked

Dick Applebaum wrote:

> Try
>
>    <cfset variable="#REReplace("#form.string#", "[ ]+"," ","ALL")#">
>
> At 4:58 PM -0400 6/6/01, Douglas Jordon wrote:
> >Hi,
> >
> >I need a Regular Expression to remove muliple spaces within a string but
> >leave single spaces. I poked around and came up with:
> >
> >  <cfset variable="#REReplace("#form.string#", "space{2,6}","","ALL")#">
> >
> >Not working. What am I doing wrong?
> >
> >TIA,
> >
> >Douglas Jordon
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to