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. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 number as in 316 Spring Creek Dr. I want to see if
 they left out the 316. Thanks in advance for any help.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358366
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358368
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 statement to 
determine if the passed string contains a number. Does that help? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358369
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 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 statement to 
 determine if the passed string contains a number. Does that help? 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358370
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 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
 statement to determine if the passed string contains a number. Does that
 help?

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358372
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358373
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 tell
 the statement to look for a number?

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358374
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 regex is essential for anyone in our line of work,
given we're basically manipulating text for a living.

-- 
Adam




On 20 April 2014 22:53, David Moore da...@upstateweb.com wrote:


 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!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 just a grid or dot background
colored for the style of the website design.  We have not had any issues
with bots getting past them even on sites we took over that were getting
form spammed 20 or more times a day.

We had good luck with the honeypot form field but found that some were first
completed by a human then that same IP returned as a bot to fill out the
form.  But it did reduce it by a substantial amount.  The captcha so far,
anecdotally, has work the best.
 

Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358377
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358378
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


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 
recognition algorithms, even on plain printed characters.
For me, those completely scrambled characters as just ridiculous paranoïa.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358379
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm