in1 should be testNum, I typed it in wrong...
----- Original Message ----- From: "Michael T. Tangorre" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 1:44 PM 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

