Thanks Dave.

Works!

I was trying to use REFIND.

This is much easier.

-Frank



----- Original Message -----
From: "Dave Carabetta" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, July 27, 2003 6:57 PM
Subject: Re: REGEX


> > 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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to