<cfset testNum = REreplace(testNum,"^332([0-9]*)","\1") />
^332 ---> look for a string with 332 at the beginning ([0-9]*) Look for all remaining digits after that. Marlon -----Original Message----- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 16, 2003 12:44 PM To: CF-Talk Subject: regex help I am trying to determine if an integer begins with 332. The number varies in length from 4 to 9 digits in length. If 332 begins the number I would like to return the number minus the 332. I am still trying to learn regex so an explanation with any ideas would be very helpful. Here is what I am starting with: <cfset testNum = 3325665 /> <cfset testNum = REreplace(in1,"^.(332).$","\1") /> Thanks, MT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

