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]
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
^[[:digit
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.
#FORM.BillZip#)>
Lets see if I can break this down, and maybe the answ
^\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
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 space, and made it a manditory space in the second optional set, you should
Hello all. I use the following to regular _expression_ to validate zipcodes.
When a customer inputs a 9 digit zip code WITHOUT the hyphen, no error is
set. (i.e. 902101444)
How would I modify this to incorporate a mandatory hyphen when a 9 digit zip
code is inputed and still work for all ot
I seem to be having a problem with this regular expression. Can anyone tell
me why? It must be something simple.
[[:space:]a-z0-9A-Z[:punct:][:space:]]+
All I am trying to do is select everything between some pesky div tags.
Thanks
ary/Regular-Expressions.cfm)
Hope that helps
-Oorspronkelijk bericht-
Van: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Verzonden: vr 1-2-2002 17:57
Aan: CF-Talk
CC:
Onderwerp: RE: another quick regular expression question
P
er
ekeda ltd
http://www.ekeda.co.uk
(+44)020-8429-7300
> -Original Message-
> From: Pascal Peters [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2002 16:39
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> This is incorrect. the regexp
uctor
LR Technologies, Belgium
Tel +32 2 639 68 70
Fax +32 2 639 68 99
Email [EMAIL PROTECTED]
Web www.lrt.be
-Original Message-
From: Steve Oliver [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 1 februari 2002 17:17
To: CF-Talk
Subject: RE: another quick regular expression question
I
002 16:17
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> I don't think it works that way with spaces.
>
> If I have the string "hello world"
>
> And do a regexp for
>
> [ ]*he[ ]*llo[ ]*wor[ ]*ld[ ]*
>
> I don't
Hi List,
I've had a few requests off-list for the code on how I print
out pages through Word. I'll go ahead and post it for everyone's
benefit. Please feel free to write me on or off list if you have any
problems.
To start, you need to have Word installed on your CF server for thi
atnet solutions, inc.
http://www.atnetsolutions.com
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 10:53 AM
To: CF-Talk
Subject: RE: another quick regular expression question
Steve I thought * matched 0 or more occurences?
than
y 2002 15:34
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> Yeah, you were searching for spaces with that. If you have a [ ]
> followed by a * then it's searching for one or more spaces.
>
> < title > untitled
tnetsolutions.com
-Original Message-
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 5:39 AM
To: CF-Talk
Subject: RE: another quick regular expression question
Thanks for the replies havent tested them out yet but will they work if
the
title tag actualy has spaces inside
Original Message-
> From: Steve Oliver [mailto:[EMAIL PROTECTED]]
> Sent: 01 February 2002 01:11
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> Brent, Try this :)
>
>
>
> (.*?)","\1")>
>
> #t
ther quick regular expression question
Hi Steve,
Won't the .* pick up the part?
-Brent
> -Original Message-
> From: Steve Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:31 PM
> To: CF-Talk
> Subject: RE: another quick regular expression q
02 8:09 PM
To: CF-Talk
Subject: RE: another quick regular expression question
Hi Steve,
Won't the .* pick up the part?
-Brent
> -Original Message-
> From: Steve Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:31 PM
> To: CF-Talk
> Subj
Hi Steve,
Won't the .* pick up the part?
-Brent
> -Original Message-
> From: Steve Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:31 PM
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> An easier way to do
> -Original Message-
> From: Steve Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:31 PM
> To: CF-Talk
> Subject: RE: another quick regular expression question
>
>
> An easier way to do that would be something like
>
> "(.*?)&qu
PROTECTED]]
Sent: Thursday, January 31, 2002 7:28 PM
To: CF-Talk
Subject: RE: another quick regular expression question
Hi,
Use this regex:
Don't forget the NoCase, or else it won't match asdf
-Brent
> -Original Message-
> From: Kola Oyedeji [mailto:[EMAIL PR
Hi,
Use this regex:
Don't forget the NoCase, or else it won't match asdf
-Brent
> -Original Message-
> From: Kola Oyedeji [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 4:15 PM
> To: CF-Talk
> Subject: another quick regular expression questio
Hi
Can anyone explain why this regex does not match every title?(i'm using it
in cfstuido on a directory of html and cfml files)
<[ ]*title[ ]*>[ ]*[[:alpha:]]*[[:punct:]]*[ ]*
It will not match untitled for example what am I doing wrong?
Thanks in advance
Kola
___
23 matches
Mail list logo