Re: Quick Regular Expression Question.

2004-06-23 Thread Jerry Johnson
cfif NOT REFind('^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$', #FORM.BillZip#) Lets see if I can break this down, and maybe the answer will fall out the other side. string containing only: 5 digits and 0 or 1 sets of ((0 or 1 dash or space) and four digits) So, if you got rid of the 0 or 1 dash or

RE: Quick Regular Expression Question.

2004-06-23 Thread Pascal Peters
^\d{5}(-\d{4})?$ Your original one allowed a space too . If you want that it is ^\d{5}([- ]\d{4})?$ If you are not on cfmx, replace \d by [0-9] -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: woensdag 23 juni 2004 17:17 To: CF-Talk Subject: Quick Regular

RE: Quick Regular Expression Question.

2004-06-23 Thread Che Vilnonis
that seems to work. thank you Jerry. -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 11:27 AM To: CF-Talk Subject: Re: Quick Regular _expression_ Question. cfif NOT REFind('^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$', #FORM.BillZip#) Lets see

Re: Quick Regular Expression Question.

2004-06-23 Thread Ben Doom
Currently, you have: ^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$ ( |-) represents a space or hypen.If you just want a hypen, you don't need the parens, space, or pipe. ( |-)? means that the space or hypen is optional. So, if you want to force a hypen for 9-digit zipcodes, you would want

Re: Quick Regular Expression Question.

2004-06-23 Thread Marlon Moyer
Here's a real handy site that I use http://www.regexlib.com Even has an online regex tester. Marlon On Wed, 23 Jun 2004 11:32:48 -0400, Che Vilnonis [EMAIL PROTECTED] wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]