It will, but your regex is miswritten.
<cfset Variables.PriceCents = REReplace(Form.Price, "[^.0-9]", "", "ALL")>
will remove all non-numbers or periods. Remember that this includes spaces
and other 'whitespace'.
> Will [^[.0-9]] work as regular expression for everything but numbers and a
> dot (.)?
>
> I tried it, but it doesn't seem to be removing anything in a REReplace
> function.....
>
> Here is my code. What Am I doing wrong?
>
> <cfset Variables.PriceCents = REReplace(Form.Price, "[^[.0-9]]", "",
"ALL")>
>
> ============================================================
> Russel Madere, Jr. Senior Web Developer
> ICQ: 5446158 http://www.TurboSquid.com
>
> Some days you eat the bear; some days the bear eats you.
> ============================================================
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
>
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists