Does Not Contain Number

2014-04-20 Thread David Moore
How do I check to see if a string includes (or does not contain) an integer or number. I am trying to check the Address form field to see if it 'Does Not Contain' a number as in 316 Spring Creek Dr. I want to see if they left out the 316. Thanks in advance for any help.

Re: Does Not Contain Number

2014-04-20 Thread John M Bliss
isnumeric(listfirst(316 Spring Creek Dr., )) On Sun, Apr 20, 2014 at 3:12 PM, David Moore dgmoor...@hotmail.com wrote: How do I check to see if a string includes (or does not contain) an integer or number. I am trying to check the Address form field to see if it 'Does Not Contain' a

Re: Does Not Contain Number

2014-04-20 Thread David Moore
Is there a way to check the whole string and not just the first part in case it is a P.O. Box 316? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion

Re: Does Not Contain Number

2014-04-20 Thread John M Bliss
refind(\d, P.O. Box 316) On Sun, Apr 20, 2014 at 3:36 PM, David Moore dgmoor...@hotmail.com wrote: Is there a way to check the whole string and not just the first part in case it is a P.O. Box 316? ~| Order the Adobe

Re: Does Not Contain Number

2014-04-20 Thread David Moore
Well, you are doing a great job. I guess I am not communicating well. I was using the 316 as an example. I want to check an address field passed from a form where the value is unknown. I just want to be able to check using Does Not Contain or IsNumeric or other Cold Fusion test in a cfif

Re: Does Not Contain Number

2014-04-20 Thread Brian Cain
Use a regex. If refind(address, [0-9] You have a number Else No number My syntax may be off, but I think this is the logic you are looking for. Brian Cain Sent from my iPhone On Apr 20, 2014, at 3:41 PM, David Moore dgmoor...@hotmail.com wrote: Well, you are doing a great job. I guess

Re: Does Not Contain Number

2014-04-20 Thread John M Bliss
I believe that refind will return zero if no digit. Therefore, you should be able to use cfif refind(/d, form.yourvar) On Apr 20, 2014 4:41 PM, David Moore dgmoor...@hotmail.com wrote: Well, you are doing a great job. I guess I am not communicating well. I was using the 316 as an example. I

Re: Does Not Contain Number

2014-04-20 Thread David Moore
For education reasons, what does the '/d' reference? How does that tell the statement to look for a number? ~| Order the Adobe Coldfusion Anthology now!

Re: Does Not Contain Number

2014-04-20 Thread John M Bliss
Regex shorthand for digit. On Apr 20, 2014 5:34 PM, David Moore da...@upstateweb.com wrote: For education reasons, what does the '/d' reference? How does that tell the statement to look for a number? ~| Order the Adobe

Re: Does Not Contain Number

2014-04-20 Thread Adam Cameron
Yay for documentation! https://wikidocs.adobe.com/wiki/display/coldfusionen/Regular+expression+syntax#Regularexpressionsyntax-Usingescapesequences -- Adam On 20 April 2014 22:34, David Moore da...@upstateweb.com wrote: For education reasons, what does the '/d' reference? How does that

Re: Does Not Contain Number

2014-04-20 Thread David Moore
Very Helpful. I had not seen this before. Great stuff. And thanks to everyone for there expertise. CF-Talk has always come through for me. Blessed Easter everyone! ~| Order the Adobe Coldfusion Anthology now!

Re: Does Not Contain Number

2014-04-20 Thread Adam Cameron
If you wanna get up to speed with regular expressions in ColdFusion, I've written a fair bit about them - from the ground up - on my blog: http://cfmlblog.adamcameron.me/search/label/Regular%20expressions Obviously Ben Nadel bangs on about them a lot on his blog too ;-) I think a good handle on

RE: Spam management for forms handling

2014-04-20 Thread UXB
do spamers really care about character recognition? Do these characters really have to look su ugly? From my experience no they don't. I have been using BHCaptch written by Bobby Hartsfield that generates a captcha from separate a-z letter images. The images we use are easily readable with

RE: Spam management for forms handling

2014-04-20 Thread Byron Mann
http://www.ubergizmo.com/2014/04/google-develops-algorithm-that-can-decipher-its-own-captchas/ Thought this was interesting in the context of the thread. Byron Mann Lead Engineer Architect HostMySite.com ~| Order the Adobe

Re: Spam management for forms handling

2014-04-20 Thread Claude Schnéegans
Thought this was interesting in the context of the thread. I'm pretty sure Google has the resources to develop such algorithms, would it be juste for the fun of it, but spammers in general have neither the ressources neither the time and probably no interest at all to develop character