I wouldn't use a regular expression for something so simple at removing 
spaces.  In my experience regular expressions have a tendency to eat up 
the server.  For something this simple I'd use

<cfset phone_number = Replace(phone_number, " ", "", "ALL")>

====================
Katrina Chapman
Consultant 
Ameriquest Mortgage




"Erki Esken" <[EMAIL PROTECTED]>
07/21/00 07:28 AM
Please respond to cf-talk

 
        To:     <[EMAIL PROTECTED]>
        cc: 
        Subject:        Re: How Eliminate blank spaces between words ??

> I need to eliminate the blank spaces between numbers in phone
> numbers so that 07 987 635 can be converted to 07987635
> 
> the code needs to read the value in the phone variable from
> the database table and then remove the blank spaces as
> indicated above

Use this RegExp:

<cfset phoneNumber = ReReplace(phoneNumber, "[[:space:]]", "", "ALL")>


Erki

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' 
in the body.



------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to