>- see footer for list info -<
Try the following - it'll look for everthing which isn't a number and delete
it, leaving just numbers.
Rereplace("(07976) 752-137", "[^0-9]", "", "ALL")
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lee Fortnam
Sent: 28 February 2006 17:31
To: 'Coldfusion Development'
Subject: [CF-Dev] RegEx to leave only numbers
>- see footer for list info -<
Hi Guys,
Been looking at REReplaceNoCase to remove all chars which are not 0-9, i.e.
for a telephone number, currently have the following:
REReplace ("(07976) 752-137","[-,(,),+, ]","","ALL") or the inverse of
REReplace ("(07976) 752-137","[[:digit:]]","","ALL") if one exists????
Any guidance would be appreciated as this is my first time with RegEx.
Regards,
Lee Fortnam
[EMAIL PROTECTED]
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________
For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<