> Hi all, > > I'm looking for a solution to strip the alpha from a string. > > The string is something like PTK191919. I need to get the part after the > letters. Note the number of letters is not constant. > > I'll keep trying, but if you've done this type of thing before please let me > know. >
This should do it: REReplace(string, "[A-Z]", "", "ALL") Here's a test case: <cfset string = "PTEPTE191919AAAAA"> <cfset newString = REReplace(string, "[A-Z]", "", "ALL")> <cfoutput> #string#<br> #newString# </cfoutput> Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

