REReplace(string, "[^0-9]","","ALL")
-Original Message-
From: Eric Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 02, 2003 7:22 PM
To: CF-Talk
Subject: Strip characters?
Is there a clean and easy way to simply strip all characters from a
field...so only integers remain? A cus
#blah#
- Original Message -
From: "Eric Hoffman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 02, 2003 8:21 PM
Subject: Strip characters?
> Is there a clean and easy way to simply strip all characters from a
> field...so only integers remain? A custom t
HTH
-Original Message-
From: Eric Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 3, 2003 1:22
To: CF-Talk
Subject: Strip characters?
Is there a clean and easy way to simply strip all characters from a
field...so only integers remain? A custom tag or popular reg ex before I
Doom of the clan of RegEx ninjas says:
string = rereplace(string, '[^[:digit:]]', '', 'all');
grashopper.
To train at the Dojo of the Regex:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -O
rereplace(form.field, "[^0-9]+", "", "all")
> -Original Message-
> From: Eric Hoffman [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 3 February 2003 2:22 p.m.
> To: CF-Talk
> Subject: Strip characters?
>
>
> Is there a clean and easy way to simply strip all characters from a
> field...so on
5 matches
Mail list logo