Rick Lamb wrote:
> Hoping someone with regular expression knowledge could help me. I need to
> take a string and eliminate everything but numbers, "-" negative signs and
> "." decimal points. Basically just leaving pos and neg decimal numbers
> filtering out anything else. Anyone willing to help?

REReplace(string,"[^\-0-9\.]","","All") I believe. You could add e and E 
to allow for scientific notation.

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to