I'm not so sure about the second set of square brackets... wouldn't [^.0-9] do
the trick?
David Cummins
Russel Madere wrote:
>
> 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