Re: Regex help - matching invalid xhtml

2008-12-03 Thread Dominic Watson
Any reason not to be using the XHTML parsers out there on the produced output?

Dominic

2008/12/3 Will Tomlinson <[EMAIL PROTECTED]>:
> I guess it'd be cool if I were to use (meta|input|img) in there, to flag 
> single tags without the trailing [space]/>
>
> Will
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316174
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
I guess it'd be cool if I were to use (meta|input|img) in there, to flag single 
tags without the trailing [space]/>

Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316137
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
I've beat my head against the wall on this regex. I want to match variations of 
invalid xhtml tags. Well, I need to match what's considered to be invalid at my 
place of work. :)

WHat I've got almost works, but not quite. 

(?i)\

It doesn't match this, which is correct. 



But it also doesnt match this, which is incorrect:



It DOES seem to work correctly with other variations. 

Any suggestions?

Thanks!

Will



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316136
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Well, I just found a function on cflib that does exactly what I was looking
for.

Sooo... carry on- nothin' to see here folks



> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2008 1:49 PM
> To: cf-talk
> Subject: RE: OT- Regex Help- extracting email address
> 
> If that's always the format, no need for a RegEx, use ListLast(theString,
> "
> ").
> 
> Adrian
> 
> -Original Message-
> From: Mike Francisco
> Sent: 25 September 2008 21:32
> To: cf-talk
> Subject: OT- Regex Help- extracting email address
> 
> Hello CFers,
> 
> I know this is OT, but I'll ask anyway. I was wondering if someone can
> help
> me with regex.
> 
> I am returning a query object after executing a cfpop.  On the query
> object,
> there is a column named 'From'.  The data string is formatted like:  "John
> Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
> string and just get the email address.
> 
> Thanks in advance, everyone.
> 
> mike
> 
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313099
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT- Regex Help- extracting email address

2008-09-25 Thread Andy Matthews
This is a regex I'm using in a recent app that I wrote:



This one is specifically Javascript, but I'd be willing to bet that it would
translate straight up.


Andy 

-Original Message-
From: Mike Francisco [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2008 3:59 PM
To: cf-talk
Subject: RE: OT- Regex Help- extracting email address

Adrian,
No it might not always be the format- possibly it might just be the email
address only or one with brackets.




> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2008 1:49 PM
> To: cf-talk
> Subject: RE: OT- Regex Help- extracting email address
> 
> If that's always the format, no need for a RegEx, use 
> ListLast(theString, "
> ").
> 
> Adrian
> 
> -Original Message-
> From: Mike Francisco
> Sent: 25 September 2008 21:32
> To: cf-talk
> Subject: OT- Regex Help- extracting email address
> 
> Hello CFers,
> 
> I know this is OT, but I'll ask anyway. I was wondering if someone can 
> help me with regex.
> 
> I am returning a query object after executing a cfpop.  On the query 
> object, there is a column named 'From'.  The data string is formatted 
> like:  "John
> Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
> string and just get the email address.
> 
> Thanks in advance, everyone.
> 
> mike
> 
> 
> 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313098
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT- Regex Help- extracting email address

2008-09-25 Thread Adrian Lynch
Ah, then ignore me :)

Google for an email RegEx and then if you're on CF8 use REMatch() to pull
the email address out.

Adrian

-Original Message-
From: Mike Francisco [mailto:[EMAIL PROTECTED]
Sent: 25 September 2008 21:59
To: cf-talk
Subject: RE: OT- Regex Help- extracting email address


Adrian,
No it might not always be the format- possibly it might just be the email
address only or one with brackets.




> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2008 1:49 PM
> To: cf-talk
> Subject: RE: OT- Regex Help- extracting email address
>
> If that's always the format, no need for a RegEx, use ListLast(theString,
> "
> ").
>
> Adrian
>
> -Original Message-
> From: Mike Francisco
> Sent: 25 September 2008 21:32
> To: cf-talk
> Subject: OT- Regex Help- extracting email address
>
> Hello CFers,
>
> I know this is OT, but I'll ask anyway. I was wondering if someone can
> help
> me with regex.
>
> I am returning a query object after executing a cfpop.  On the query
> object,
> there is a column named 'From'.  The data string is formatted like:  "John
> Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
> string and just get the email address.
>
> Thanks in advance, everyone.
>
> mike
>
>
>



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313097
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Adrian,
No it might not always be the format- possibly it might just be the email
address only or one with brackets.




> -Original Message-
> From: Adrian Lynch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2008 1:49 PM
> To: cf-talk
> Subject: RE: OT- Regex Help- extracting email address
> 
> If that's always the format, no need for a RegEx, use ListLast(theString,
> "
> ").
> 
> Adrian
> 
> -Original Message-
> From: Mike Francisco
> Sent: 25 September 2008 21:32
> To: cf-talk
> Subject: OT- Regex Help- extracting email address
> 
> Hello CFers,
> 
> I know this is OT, but I'll ask anyway. I was wondering if someone can
> help
> me with regex.
> 
> I am returning a query object after executing a cfpop.  On the query
> object,
> there is a column named 'From'.  The data string is formatted like:  "John
> Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
> string and just get the email address.
> 
> Thanks in advance, everyone.
> 
> mike
> 
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313096
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: OT- Regex Help- extracting email address

2008-09-25 Thread Adrian Lynch
If that's always the format, no need for a RegEx, use ListLast(theString, "
").

Adrian

-Original Message-
From: Mike Francisco
Sent: 25 September 2008 21:32
To: cf-talk
Subject: OT- Regex Help- extracting email address

Hello CFers,

I know this is OT, but I'll ask anyway. I was wondering if someone can help
me with regex.

I am returning a query object after executing a cfpop.  On the query object,
there is a column named 'From'.  The data string is formatted like:  "John
Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
string and just get the email address.

Thanks in advance, everyone.

mike


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313094
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Hello CFers,

 

I know this is OT, but I'll ask anyway. I was wondering if someone can help
me with regex.

 

I am returning a query object after executing a cfpop.  On the query object,
there is a column named 'From'.  The data string is formatted like:  "John
Doe" [EMAIL PROTECTED] .   I would like to use regex to strip the data
string and just get the email address.

 

Thanks in advance, everyone.

 

mike



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313092
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help

2008-06-30 Thread Sonny Savage
Yeah... my solution has a '+' match on the space.  Glad you solved it!

On Mon, Jun 30, 2008 at 3:20 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote:

> >This RegEx will tell you if there are any spaces between the parenthesis:
> >if\s*\(.*\s+.*\)\s*\{
> >
>
>
> I posted a solved post but don't see it yet.
>
> I can't use * because that flags it even if there's 0 spaces. I used + and
> it works.
>
> Thanks sonny!
>
> Will
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308335
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help

2008-06-30 Thread Will Tomlinson
>This RegEx will tell you if there are any spaces between the parenthesis:
>if\s*\(.*\s+.*\)\s*\{
>


I posted a solved post but don't see it yet. 

I can't use * because that flags it even if there's 0 spaces. I used + and it 
works. 

Thanks sonny!

Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308334
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help

2008-06-30 Thread Sonny Savage
It just occurred to me that the any pattern matches should be non-greedy for
matching accuracy:
if\s*\(.*?\s+.*?\)\s*\{

On Mon, Jun 30, 2008 at 3:10 PM, Sonny Savage <[EMAIL PROTECTED]> wrote:

> This RegEx will tell you if there are any spaces between the parenthesis:
> if\s*\(.*\s+.*\)\s*\{
>
> Edward A Savage Jr - "Sonny"
> Senior Software Engineer
> Creditdiscovery, LLC
> "An appeaser is one who feeds a crocodile, hoping it will eat him last." ~
> Sir Winston Churchill
>
> On Mon, Jun 30, 2008 at 2:58 PM, Will Tomlinson <[EMAIL PROTECTED]>
> wrote:
>
>> I can do just one part, but if I try to make it an either/or with a pipe,
>> it throws me off. This works.
>>
>> 
>>
>> 
>>
>> #reFindNoCase(re, str)#
>>
>> How do I add the brackets and so it'll catch one or the other?
>>
>> Thanks much,
>> Will
>>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308330
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex help (Solved)

2008-06-30 Thread Will Tomlinson
Ok, my example was wrong anyway. lol!

I figured it out. This worked:





#reFindNoCase(re, str)# 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308329
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex help

2008-06-30 Thread Sonny Savage
This RegEx will tell you if there are any spaces between the parenthesis:
if\s*\(.*\s+.*\)\s*\{

Edward A Savage Jr - "Sonny"
Senior Software Engineer
Creditdiscovery, LLC
"An appeaser is one who feeds a crocodile, hoping it will eat him last." ~
Sir Winston Churchill

On Mon, Jun 30, 2008 at 2:58 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote:

> I can do just one part, but if I try to make it an either/or with a pipe,
> it throws me off. This works.
>
> 
>
> 
>
> #reFindNoCase(re, str)#
>
> How do I add the brackets and so it'll catch one or the other?
>
> Thanks much,
> Will
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help

2008-06-30 Thread Will Tomlinson
I can do just one part, but if I try to make it an either/or with a pipe, it 
throws me off. This works. 





#reFindNoCase(re, str)#

How do I add the brackets and so it'll catch one or the other?

Thanks much,
Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308326
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Regex help

2008-06-30 Thread Will Tomlinson
This SEEMED simple enough, but I can't quite make it work. Tried for the last 
30 minutes. 

The string cannot have any spaces in between the if( or the ){





#reFindNoCase(re, str)#

WHat am I doin wrong?

Thanks,
Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308325
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Complex RegEx help request

2008-05-20 Thread Tom Chiverton
On Monday 19 May 2008, Jeremy Prevost wrote:
> Firstname Lastname
> into this:
>  href="javascript:ColdFusion.Window.create('staffContact#FirstName##Lastname
>#','Contact%20#Firstname#%20#Lastname#',

refind() with 'returnsubmatches' enabled, and then use those array positions 
with mid() to pull out the two bits you want.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305720
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Complex RegEx help request

2008-05-19 Thread Jeremy Prevost
Thanks Bobby, I'll give that a shot.


On Mon, May 19, 2008 at 6:20 PM, Bobby Hartsfield <[EMAIL PROTECTED]> wrote:
> Hi Jeremy, Here is how I do it in CF4em to replace things like [code]some
> code[/code]
>
> Loop the string, replacing the blocks with a marker and storing the name in
> an array (the array position would match the marker)
> Then you can loop the array, convert the names to links and put them back
> into their original places with replace(str, '**marker1**', newLink, 'all')
>
> You can download cf4em (http://cf4em.com/downloads) and view
> /inc/parsebbml.cfm for some working code.
>
> Specifically, check out how code blocks, url blocks, and encryption blocks
> are removed, modified and put back into place. You could probably do both at
> once and skip the array in your case.
>
> A regex for your case would look like: (.*?)
>
>
> ..:.:.:.:.:.:.:.:.:.:.:.:.
> Bobby Hartsfield
> http://acoderslife.com
> http://cf4em.com
>
>
> -Original Message-
> From: Jeremy Prevost [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 19, 2008 5:43 PM
> To: CF-Talk
> Subject: Complex RegEx help request
>
> Hi all. I'm hoping someone can help out with this problem I've run into.
>
> I'm trying to make our home grown CMS a bit easier to use for our
> editors and easier to maintain. The issue at hand involves how we code
> email addresses into the content. I have an even that pops up a new
> contact window (CFwindow) and takes a Firstname and Lastname
> parameter. From there when the form is filled out the model looks up
> the email address based on the firstname/lastname combo and that all
> works great. However, I now want to tweak the code just a bit and will
> need to do some interesting find/replace work on the db side...which
> isn't a huge deal but I'd rather avoid doing it again every time I
> need to make changes.
>
> My thought was to use a pseudo tag such as Firstname
> Lastname which would be really easy for our editors to use and
> I'd replace that pseudo tag at display time with the actual link to
> the cfwindow. That works great in my mind, but I'm having a heck of a
> time creating a RegEx that will do what I want.
>
> In summary, anyone have any pointers as to which direction I should go
> to turn this:
>
> Firstname Lastname
>
> into this:
>
>  href="javascript:ColdFusion.Window.create('staffContact#FirstName##Lastname#
> ','Contact%20#Firstname#%20#Lastname#','/index.cfm?event=page.comment&firstn
> ame=#firstname#&lastname=#lastname#',{center:true,height:400,width:600,modal
> :false,closable:true,draggable:true,resizable:true,center:true,initshow:true
> ,minheight:200,minwidth:200})">Email
> #Firstname# #Lastname#
>
> Any thoughts would be much appreciated!
>
> Thanks,
> Jeremy
>
>
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305679
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Complex RegEx help request

2008-05-19 Thread Bobby Hartsfield
Hi Jeremy, Here is how I do it in CF4em to replace things like [code]some
code[/code]

Loop the string, replacing the blocks with a marker and storing the name in
an array (the array position would match the marker)
Then you can loop the array, convert the names to links and put them back
into their original places with replace(str, '**marker1**', newLink, 'all')

You can download cf4em (http://cf4em.com/downloads) and view
/inc/parsebbml.cfm for some working code.

Specifically, check out how code blocks, url blocks, and encryption blocks
are removed, modified and put back into place. You could probably do both at
once and skip the array in your case.

A regex for your case would look like: (.*?)


..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Jeremy Prevost [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 19, 2008 5:43 PM
To: CF-Talk
Subject: Complex RegEx help request

Hi all. I'm hoping someone can help out with this problem I've run into.

I'm trying to make our home grown CMS a bit easier to use for our
editors and easier to maintain. The issue at hand involves how we code
email addresses into the content. I have an even that pops up a new
contact window (CFwindow) and takes a Firstname and Lastname
parameter. From there when the form is filled out the model looks up
the email address based on the firstname/lastname combo and that all
works great. However, I now want to tweak the code just a bit and will
need to do some interesting find/replace work on the db side...which
isn't a huge deal but I'd rather avoid doing it again every time I
need to make changes.

My thought was to use a pseudo tag such as Firstname
Lastname which would be really easy for our editors to use and
I'd replace that pseudo tag at display time with the actual link to
the cfwindow. That works great in my mind, but I'm having a heck of a
time creating a RegEx that will do what I want.

In summary, anyone have any pointers as to which direction I should go
to turn this:

Firstname Lastname

into this:

Email
#Firstname# #Lastname#

Any thoughts would be much appreciated!

Thanks,
Jeremy



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305675
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Complex RegEx help request

2008-05-19 Thread Jeremy Prevost
Hi all. I'm hoping someone can help out with this problem I've run into.

I'm trying to make our home grown CMS a bit easier to use for our
editors and easier to maintain. The issue at hand involves how we code
email addresses into the content. I have an even that pops up a new
contact window (CFwindow) and takes a Firstname and Lastname
parameter. From there when the form is filled out the model looks up
the email address based on the firstname/lastname combo and that all
works great. However, I now want to tweak the code just a bit and will
need to do some interesting find/replace work on the db side...which
isn't a huge deal but I'd rather avoid doing it again every time I
need to make changes.

My thought was to use a pseudo tag such as Firstname
Lastname which would be really easy for our editors to use and
I'd replace that pseudo tag at display time with the actual link to
the cfwindow. That works great in my mind, but I'm having a heck of a
time creating a RegEx that will do what I want.

In summary, anyone have any pointers as to which direction I should go
to turn this:

Firstname Lastname

into this:

Email
#Firstname# #Lastname#

Any thoughts would be much appreciated!

Thanks,
Jeremy

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305667
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-18 Thread Jeff Price
LOL! And here I was thinking the ~ was some kind of special character! 
Sometimes if it looks like a tilde it's just a tilde :)

Thanks!

>That range matches all the characters in the ascii chart except the control 
>characters.  Same as saying give me all the Ascii characters from Ascii 32 
>(space) to Ascii 126 (_).  I thought it was a bit more restrictive than the 
>dot operator.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299263
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-18 Thread Craigsell
That range matches all the characters in the ascii chart except the control 
characters.  Same as saying give me all the Ascii characters from Ascii 32 
(space) to Ascii 126 (_).  I thought it was a bit more restrictive than the 
dot operator.

 In the [\w -~], the -w is actually redundant since \w stands for 
[a-zA-Z0-9].

Another improvement would be to account for variable spacers using 
reFindNoCase("",inputString, pos).

As far as I know, greediness is not restricted to CF but can be found in any 
regular expression. From what I've heard CF8 deals with regexp differently 
than CF7.  For example, I think CF8 will return an array of matches.

In looking at this again, I'd say it is greedy because of the [ -~]+ pattern 
(similar to using .+) .  I think using reFindNoCase("",inputString, pos) will force minimal 
matching but I'd have to run some tests with it to be sure.

Any regexp experts care to weigh in?  I don't use them enough to be an 
authority and would like to learn more 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299261
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-18 Thread Jeff Price
Two questions:

1) What does the -~ do inside the []? I haven't seen that syntax before or I'm 
incredibly rusty with my regex. 

2) Is your regex minimally matching? I had always thought CF was a greedy match?

Thanks,
Jeff

>Actually, please ignore my last message. I have got it to work:
>reFindNoCase("",inputString, pos)
>
>Thank you everybdoy for your help.
>
>Regards,
>
>cfcoder 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299257
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-18 Thread cf coder
Actually, please ignore my last message. I have got it to work:
reFindNoCase("",inputString, pos)

Thank you everybdoy for your help.

Regards,

cfcoder

> Thank you Jason, Craig and Bobby for your help which is greatly 
> appreciated. However this is not quite what I want. I do apologise for 
> changing my original requirement.
> 
> I'll try to explain.
> 
> I want to read the contents of all the .cfm files in a directory and 
> return all the href tags with the "productID=" text in the query 
> string, ex:
> test
> 
> When I did a search in the codebase for "productID=", I found there 
> were few  tags which looked like this:
> 
> 
> 
> I want the regular expression to be able to match the above example as 
> well.
> 
> If it is not too much of an inconvenience can you please send me the 
> revised code?
> 
> Regard,
> cfcoder
> 
> > EDIT:
> > 
> > The regex should be this one instead.  The one above would not 
> handle 
> > any thing between the href="" and the closing >. 
> > 
> (]*href=[> 
> '"](([^'"]*)?([^"']ProductID=?([^&"']*)[^'"]*))['"][^>]*>([^<]*)<\/a>) 
> 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299256
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-18 Thread cf coder
Thank you Jason, Craig and Bobby for your help which is greatly appreciated. 
However this is not quite what I want. I do apologise for changing my original 
requirement.

I'll try to explain.

I want to read the contents of all the .cfm files in a directory and return all 
the href tags with the "productID=" text in the query string, ex:
test

When I did a search in the codebase for "productID=", I found there were few 
 tags which looked like this:



I want the regular expression to be able to match the above example as well.

If it is not too much of an inconvenience can you please send me the revised 
code?

Regard,
cfcoder

> EDIT:
> 
> The regex should be this one instead.  The one above would not handle 
> any thing between the href="" and the closing >. 
> 
(]*href=[> 
'"](([^'"]*)?([^"']ProductID=?([^&"']*)[^'"]*))['"][^>]*>([^<]*)<\/a>) 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299255
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: regex help

2008-02-15 Thread Bobby Hartsfield
I wasn't very strict with ensuring that the string was found in 
tags... although it would be simple to add if you need that... I only made
sure that it was either &productid=NUMBER or ?productID=NUMBER (regardless
of case)

I just wanted to make sure that I got a simple solution posted before anyone
had the chance to fall for the inevitable reextract sales pitch that seems
to follow every regex question on this list these days. 


function freeFunction(str)
{
var tmp = '';
var tmpArr = arrayNew(1);

while(refindnocase(".*?(&|\?)productID=([0-9]{1,})[^0-9]", str))
{
str = rereplacenocase(str,
".*?(&|\?)productID=([0-9]{1,}).*?[^0-9]", "[**\2**]");
tmp = arrayappend(tmpArr, rereplacenocase(str,
"\[\*\*([0-9].*?)\*.*", "\1"));
}
return tmpArr;
} 






..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299114
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-15 Thread Jason Morgan
Hi here is a regex that should do the job.  It does a little more that you are 
asking for.  I felt like playing around with the regex.  

(]*href=['"](([^'"]*)?([^"']ProductID=?([^&"']*)[^'"]*))['"]>([^<]*)<\/a>)



I am link 1

I am link 2

I am link 3

I am link 4

I am link 5




Text

#text#
























Thanks, 
Jason Morgan. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299100
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-15 Thread Jason Morgan
EDIT:

The regex should be this one instead.  The one above would not handle any thing 
between the href="" and the closing >. 

(]*href=['"](([^'"]*)?([^"']ProductID=?([^&"']*)[^'"]*))['"][^>]*>([^<]*)<\/a>)
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299105
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-15 Thread Craigsell
Sorry -- you only wanted it if productid was in a query string.

Try this

reFindNoCase("",inputString, 
pos)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299093
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-15 Thread Gerald Guido
I use the QuickREx plugin for Eclipes. Very handy.  RegEx's make my brain
hurt.

http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html

There is a stand alone version

http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/standalone.html



-- 
"All you need in this life is ignorance and confidence; then success is
sure."
- Mark Twain


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299091
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-15 Thread Craigsell
If tmp > 0, it's there!

reFindNoCase("",inputString, pos)

Warren Koch

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299090
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: regex help

2008-02-15 Thread cf coder
pardon me saying this but it looks very complicated. I rather just write a 
regex that will do this effortlessley.

Regards,
cfcoder

>>>I need some help with regular expressions.
>
>What you need is the kind of requirement I made CF_REextract for.
>See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299089
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-15 Thread Claude Schneegans
 >>I need some help with regular expressions.

What you need is the kind of requirement I made CF_REextract for.
See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299086
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: regex help

2008-02-15 Thread cf coder
I would prefer the regular expression to do this. Can you show me how to do 
what you are suggesting please?

>If you don't manage to get what you're after. Just loop over the array and
>look for the string.
>
>Adrian
>
>Hello everybody,
>
>I need some help with regular expressions.
>
>I'm trying to write a reqular expression that will return all the links on a
>page that contain a string in the query string.
>
>I found a UDF on cflib that returns a list of all the anchor tags on a page
>but I want to only return all href tags that contain the word "ProductID" in
>the query string ex:
>test
>
>Here is the udf, that returns all the links on the page.
>
>function hrefsToList(inputString) {
>   var pos=1;
>   var tmp=0;
>   var linklist = "";
>   var delimiter = ",";
>   var endpos = "";
>
>   if(arrayLen(arguments) gte 2) delimiter = arguments[2];
>
>   while(1) {
>   tmp = reFindNoCase("]*>[^>]*", inputString, pos);
>   if(tmp) {
>   pos = tmp;
>   endpos = findNoCase("", inputString, pos)+4;
>   linkList = listAppend(linkList, mid(inputString, pos, 
> endpos-pos),
>delimiter);
>   pos = endpos;
>   }
>   else break;
>   }
>
>   return linkList;
>}
>
>Can someone please show me how to change the modify expression to return
>what I've explained above please?
>
>Thanks,
>cfcoder 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299085
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: regex help

2008-02-15 Thread Adrian Lynch
If you don't manage to get what you're after. Just loop over the array and
look for the string.

Adrian

-Original Message-
From: cf coder
Sent: 15 February 2008 17:11
To: CF-Talk
Subject: regex help


Hello everybody,

I need some help with regular expressions.

I'm trying to write a reqular expression that will return all the links on a
page that contain a string in the query string.

I found a UDF on cflib that returns a list of all the anchor tags on a page
but I want to only return all href tags that contain the word "ProductID" in
the query string ex:
test

Here is the udf, that returns all the links on the page.

function hrefsToList(inputString) {
var pos=1;
var tmp=0;
var linklist = "";
var delimiter = ",";
var endpos = "";

if(arrayLen(arguments) gte 2) delimiter = arguments[2];

while(1) {
tmp = reFindNoCase("]*>[^>]*", inputString, pos);
if(tmp) {
pos = tmp;
endpos = findNoCase("", inputString, pos)+4;
linkList = listAppend(linkList, mid(inputString, pos, 
endpos-pos),
delimiter);
pos = endpos;
}
else break;
}

return linkList;
}

Can someone please show me how to change the modify expression to return
what I've explained above please?

Thanks,
cfcoder


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299084
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


regex help

2008-02-15 Thread cf coder
Hello everybody,

I need some help with regular expressions.

I'm trying to write a reqular expression that will return all the links on a 
page that contain a string in the query string.

I found a UDF on cflib that returns a list of all the anchor tags on a page but 
I want to only return all href tags that contain the word "ProductID" in the 
query string ex:
test

Here is the udf, that returns all the links on the page.

function hrefsToList(inputString) {
var pos=1;
var tmp=0;
var linklist = "";
var delimiter = ",";
var endpos = "";

if(arrayLen(arguments) gte 2) delimiter = arguments[2];

while(1) {
tmp = reFindNoCase("]*>[^>]*", inputString, pos);
if(tmp) {
pos = tmp;
endpos = findNoCase("", inputString, pos)+4;
linkList = listAppend(linkList, mid(inputString, pos, 
endpos-pos), delimiter);
pos = endpos;
}
else break;
}

return linkList;
}

Can someone please show me how to change the modify expression to return what 
I've explained above please?

Thanks,
cfcoder 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299082
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Bad Word Regex Help

2007-12-17 Thread Mark Henderson
>The only thing I'm not sure is if it will match in the case of the
>beginning and the end of the string.
>Better make sure, try : "(^|[^a-zA-Z])#wordKey#([^a-zA-Z]|$)"

Awesome, thanks! Pardon my previous inept description, as I know the
carrot means 'not'.

Mark





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294963
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Bad Word Regex Help

2007-12-17 Thread Claude Schneegans
 >>the above regex seems to be checking for any alpha characters either 
before or
after the bad word

It's the opposite: it is checking for one character which is NOT alpha, 
before AND after.
The only thing I'm not sure is if it will match in the case of the 
beginning and the end of the string.
Better make sure, try : "(^|[^a-zA-Z])#wordKey#([^a-zA-Z]|$)"

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294961
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Bad Word Regex Help

2007-12-17 Thread Mark Henderson
Hi Claude,

Thanks for the help.

>How about (non tested)
>reReplaceNoCase(attributes.replacedString,
>"([^a-zA-Z])#wordKey#([^a-zA-Z]), "\1**CENSORED**\2", "all")>
>

I tried something similar earlier, and tested your suggestion just now:

reReplaceNoCase(attributes.replacedString,"([^a-zA-Z])#wordKey#([^a-zA-Z
])", "\1**CENSORED**\2", "all")>

 but then if there is a space either before or after the bad word, it
is ignored. At least I think that's what is happening, since the above
regex seems to be checking for any alpha characters either before or
after the bad word, but I could be wrong. At any rate, the bad words are
still getting through. 

> but be aware that any one really will to use badwords will just
have
>to lightly alter the spelling.
 
Yep, gotcha.  This is just one of several steps in place and I am
constantly going to be adding to the bad word list, along with the
standard IP check, hidden form fields etc which are already in place.


Mark


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294953
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Bad Word Regex Help

2007-12-17 Thread Claude Schneegans
 >>Normally I would just use boundaries (\b) for this, but since the
current platform is running CF5

How about (non tested)
reReplaceNoCase(attributes.replacedString,  
"([^a-zA-Z])#wordKey#([^a-zA-Z]), "\1**CENSORED**\2", "all")>

 but be aware that any one really will to use badwords will just have 
to lightly alter the spelling.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294946
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Bad Word Regex Help

2007-12-17 Thread Mark Henderson
Normally I would just use boundaries (\b) for this, but since the
current platform is running CF5, that's not an option. For all you regex
people out there, all I want to do is test a string for the existence of
any bad words. 



  


Which works ok, but if the word is part of another larger word, I would
like it to be left alone, and currently it is not. Any ideas? TIA.

Mark


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294937
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF5 Regex Help

2007-09-20 Thread Ben Doom
loop list=yourtext delimiter=chr(10) index = i
rereplace(i, "(|)+(.?)(|)+.*", "\2")
/loop

Not tested, and there is probably a better way.  If this were brought up 
on CF-RegEx, I think I can guarantee a lively (and nostalgic) discussion 
of CF5 workarounds.

--Ben "the out-of-practice RegEx Ninja" Doom

Jim McAtee wrote:
> I need to run this on our CF5 server:  I have some large text fields 
> containing HTML, most of which have some variation of the following HTML 
> snippet at the beginning:
> 
> Some text More text and HTML follows...
> Some more text More text and HTML follows...
> Yet some more text More text and HTML follows...
> 
> I need a regex that will let me extract and remove the leading text so 
> that it can be stored in a separate column. 
> 
> 
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288911
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF5 Regex Help

2007-09-19 Thread Claude Schneegans
 >>I need a regex that will let me extract and remove the leading text

Hi, this is a perfect job for CF_REextract.
See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288860
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CF5 Regex Help

2007-09-19 Thread Jim McAtee
I need to run this on our CF5 server:  I have some large text fields 
containing HTML, most of which have some variation of the following HTML 
snippet at the beginning:

Some text More text and HTML follows...
Some more text More text and HTML follows...
Yet some more text More text and HTML follows...

I need a regex that will let me extract and remove the leading text so 
that it can be stored in a separate column. 


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help with search strings

2007-07-27 Thread Mark Henderson
Bobby Hartsfield wrote:
> My brother's name is Justin William Eugene Mckinney III. That 
> might throw you for a loop. It will really throw you for a 
> loop when it is "Justin William Eugene Mckinney III PHD"
> Or
> "Dr. Justin William Eugene Mckinney III"

Hi Bobby

Yep, I considered this type of thing and you are right, so for better or
worse on the search box view I am advising them to enter first and last
names only. And before the search is executed I am also doing:



And if it is greater than 1 I shoot them back with an error message
telling them they entered too many names. I'm also checking for numbers
and other characters.

> Simply taking listfirst() and listlast() delimited by a space 
> won't always give you the result you want... but when it IS a 
> good idea... you just do...
> 
>   listlast(name, " ") />

This is what I'm going with since it is simple and effective enough for
my requirements. Thanks!

then Jide Aliu wrote
> From what you're saying, you probably might not need Regex. 
> How about GetToken? 
> 
> 
> 
>   var2 = GetToken(trim(SearchField), 2, " ")>
> 
> Am I barking up the wrong tree?

Jide, no I don't think you are, but when I try this it returns a full
set of results in the database. It could be the way my search query
logic is ordered, since when I output var1 and var2, they appear to be
correct. However, I had some success with listfind and also with Bobby's
suggestion above (which is what I'm using), so I didn't delve into it
too much.

I'm still getting some delay on the HOF mail delivery, so thanks to all
who replied.

Mark

-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284691
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help with search strings

2007-07-26 Thread Bobby Hartsfield
My brother's name is Justin William Eugene Mckinney III. That might throw
you for a loop. It will really throw you for a loop when it is 
"Justin William Eugene Mckinney III PHD"
Or
"Dr. Justin William Eugene Mckinney III"

Simply taking listfirst() and listlast() delimited by a space won't always
give you the result you want... but when it IS a good idea... you just do...




..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com

-Original Message-
From: Mark Henderson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 6:19 PM
To: CF-Talk
Subject: Regex help with search strings

Hi
 
I have a search box that currently contains only one field. I normally have
one input for first name, one for lat name and so on, which makes the task
of searching somewhat easier. However, in this scenario that is not the
case. So, what I want to do is split the search term entered into distinct
variables.
 
An example - let's say someone enters "joe blogs" in the search field
(without quotes). I then want to be able to parse it so that I have one
variable for "joe" and another for "blogs", which I can then search on since
the database is organised into first_name, last_name, maiden_name, email,
etc. The criteria for this will be the space between the names.
This looks like a case for regular expressions. I know how to use REFind to
check for the space, but that's all so far (I've spent some time on this,
and even read the docs!). Can someone help me here please? 
 
TIA

Regards

Mark Henderson
Web Designer
mailto: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

205 Main Street
PO Box 143, Gore
Southland 9700
Phone: (03) 203 
Fax: (03) 203 9900



  <http://www.cwc.co.nz>
  <http://www.ispnz.co.nz>
  <http://www.nzfarming.co.nz> 

http://www.cwc.co.nz <http://www.cwc.co.nz> http://www.ispnz.co.nz
<http://www.ispnz.co.nz> http://www.nzfarming.co.nz
<http://www.nzfarming.co.nz>  



Notice of Confidential Information: The information contained in this
electronic mail is CONFIDENTIAL INFORMATION and may be LEGALLY PRIVILEGED,
intended only for the individual or entity named above. If you are not the
intended recipient, you are hereby notified that the use, dissemination,
distribution, or copying of this document is strictly prohibited. If you
have received this electronic message in error, please immediately notify us
by return or telephone (0064 3 203
) and destroy the original message. Thank you. 


--
This message has been scanned for viruses and dangerous content by ISPNZ's
automated virus detection system, and is believed to be clean.





~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284682
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help with search strings

2007-07-26 Thread Mark Henderson
> From: Ben Doom
> Sent: Friday, 27 July 2007 2:17 a.m.
> To: CF-Talk
> Subject: Re: Regex help with search strings
> 
> You could do this with a regex but it would be easier and 
> more efficient to do it with listfind() using a space as the 
> delimiter.

Hi Ben. 

I worked it out using a regex but I see why you recommend using listfind
given the logic required in the search query when using more than one
variable. So I took your advice and read:
http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt210.ht
m#4695870

... and I have it working with that now. Thanks for the tip.

Mark

-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284677
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help with search strings

2007-07-26 Thread Mark Henderson
From: Mark Henderson 
> Sent: Thursday, 26 July 2007 10:19 a.m.
> To: CF-Talk
> Subject: Regex help with search strings
> 
> Hi
>  
> I have a search box that currently contains only one field. I 
> normally have one input for first name, one for lat name and 
> so on, which makes the task of searching somewhat easier. 
> However, in this scenario that is not the case. So, what I 
> want to do is split the search term entered into distinct variables.
>  
> An example - let's say someone enters "joe blogs" in the 
> search field (without quotes). I then want to be able to 
> parse it so that I have one variable for "joe" and another 
> for "blogs", which I can then search on since the database is 
> organised into first_name, last_name, maiden_name, email, 
> etc. The criteria for this will be the space between the names.
> This looks like a case for regular expressions. I know how to 
> use REFind to check for the space, but that's all so far 
> (I've spent some time on this, and even read the docs!). Can 
> someone help me here please? 

For some reason Outlook decided to try and send my previous post as HTML
when I have HOF clearly set in my address book to use plain text - my
apologies for that. Anyway, something like the following seems to work:




But if there is something else I can or should be doing when checking
the field please let me know.

Mark

-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284678
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex help with search strings

2007-07-26 Thread Jide Aliu
>From what you're saying, you probably might not need Regex. How about 
>GetToken? 






Am I barking up the wrong tree?


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284675
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Regex help with search strings

2007-07-26 Thread Mark Henderson
Hi
 
I have a search box that currently contains only one field. I normally
have one input for first name, one for lat name and so on, which makes
the task of searching somewhat easier. However, in this scenario that is
not the case. So, what I want to do is split the search term entered
into distinct variables.
 
An example - let's say someone enters "joe blogs" in the search field
(without quotes). I then want to be able to parse it so that I have one
variable for "joe" and another for "blogs", which I can then search on
since the database is organised into first_name, last_name, maiden_name,
email, etc. The criteria for this will be the space between the names.
This looks like a case for regular expressions. I know how to use REFind
to check for the space, but that's all so far (I've spent some time on
this, and even read the docs!). Can someone help me here please? 
 
TIA

Regards

Mark Henderson
Web Designer
mailto: [EMAIL PROTECTED]   

205 Main Street
PO Box 143, Gore
Southland 9700
Phone: (03) 203 
Fax: (03) 203 9900



    
   
   

http://www.cwc.co.nz  
http://www.ispnz.co.nz  
http://www.nzfarming.co.nz   



Notice of Confidential Information: The information contained in this
electronic mail is CONFIDENTIAL INFORMATION and may be LEGALLY
PRIVILEGED, intended only for the individual or entity named above. If
you are not the intended recipient, you are hereby notified that the
use, dissemination, distribution, or copying of this document is
strictly prohibited. If you have received this electronic message in
error, please immediately notify us by return or telephone (0064 3 203
) and destroy the original message. Thank you. 


-- 
This message has been scanned for viruses and dangerous
content by ISPNZ's automated virus detection system,
and is believed to be clean.



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284608
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help with search strings

2007-07-26 Thread Ben Doom
You could do this with a regex but it would be easier and more efficient 
to do it with listfind() using a space as the delimiter.

--Ben Doom

Mark Henderson wrote:
> Hi
>  
> I have a search box that currently contains only one field. I normally
> have one input for first name, one for lat name and so on, which makes
> the task of searching somewhat easier. However, in this scenario that is
> not the case. So, what I want to do is split the search term entered
> into distinct variables.
>  
> An example - let's say someone enters "joe blogs" in the search field
> (without quotes). I then want to be able to parse it so that I have one
> variable for "joe" and another for "blogs", which I can then search on
> since the database is organised into first_name, last_name, maiden_name,
> email, etc. The criteria for this will be the space between the names.
> This looks like a case for regular expressions. I know how to use REFind
> to check for the space, but that's all so far (I've spent some time on
> this, and even read the docs!). Can someone help me here please? 
>  
> TIA
> 
> Regards
> 
> Mark Henderson
> Web Designer
> mailto: [EMAIL PROTECTED]   
> 
> 205 Main Street
> PO Box 143, Gore
> Southland 9700
> Phone: (03) 203 
> Fax: (03) 203 9900
> 
> 
> 
>     
>    
>    
> 
> http://www.cwc.co.nz  
> http://www.ispnz.co.nz  
> http://www.nzfarming.co.nz   
> 
> 
> 
> Notice of Confidential Information: The information contained in this
> electronic mail is CONFIDENTIAL INFORMATION and may be LEGALLY
> PRIVILEGED, intended only for the individual or entity named above. If
> you are not the intended recipient, you are hereby notified that the
> use, dissemination, distribution, or copying of this document is
> strictly prohibited. If you have received this electronic message in
> error, please immediately notify us by return or telephone (0064 3 203
> ) and destroy the original message. Thank you. 
> 
> 


~|
ColdFusion 8 beta - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284631
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Haha! Beer may have played a part in that article... oh and I accept the beer. 
;-)

Cheers!

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 5:01 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Thanks Bobby, I owe you a beer. And not just for this but for
http://www.acoderslife.com/news/index.cfm?storyid=7 too!!

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 21:21
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Sorry, Should have said that you DO still have to: 
order by length(artist) desc

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:43 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Or a couple loops

 





#artist#", "all") /> 

That did the trick for me.

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:34 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don't know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")















~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276459
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Thanks Bobby, I owe you a beer. And not just for this but for
http://www.acoderslife.com/news/index.cfm?storyid=7 too!!

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 21:21
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Sorry, Should have said that you DO still have to: 
order by length(artist) desc

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:43 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Or a couple loops

 





#artist#", "all") /> 

That did the trick for me.

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:34 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don't know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")













~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276458
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Sorry, Should have said that you DO still have to: 
order by length(artist) desc

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:43 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Or a couple loops








#artist#", "all") />


That did the trick for me.

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:34 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don’t know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")











~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276455
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
That's sweet Bobby - seems to work a treat. Thanks very much.

Will 


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 20:43
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Or a couple loops

 





#artist#", "all") /> 

That did the trick for me.

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:34 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don't know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")











~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276453
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Good plan. I reckon that will work. Now to play with the regex...

Cheers

w

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 20:34
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don't know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")









~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276437
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Or a couple loops








#artist#", "all") />


That did the trick for me.

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:34 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

I don’t know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")









~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276435
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
I don’t know what I was thinking but that wont work either. Say you had
Bobby and Bobby Hartsfield

If you replaced Bobby Hartsfield with a link then Bobby... the code would
replace the Bobby within Bobby Hartsfield

You will need to order the names by length descending to make sure the
longer names are taken care of first but you will also need to use a regular
expression to replace the strings only if they are NOT within
(#artist#) already


-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 3:15 PM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")







~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276431
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Yes, Do it in your query. Try this...

Select artist
>From tablename
Order by length(artist)


-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 10:24 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")





~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276423
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Yes, I'm in agreement. I wondered if a regex was the answer here, but I have
no idea.

Interestingly, if I reverse the order of the query I still get the same
result, which is odd and not what I'd expect. I did a cfdump of the query to
check it is ordered correctly.

I'm beginning to think an alternative approach might be in order here...

-Original Message-
From: Leitch, Oblio [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 14:48
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Well, I've got a couple of comments, for what they're worth.  First, you're
not using RegEx.  Next, it appears that what you're doing here:


 

 #artist#",   "ALL")>


is you have two queries, one of the event(s), one grabbing a list of
artists.  Are you sorting the artists?  It looks to me like when you loop
over the artists, you're simply getting "John Smith" first.  So, you have a
statement like "change all occurrences of 'John Smith'", which it does.  On
the next pass, your statement reads "change all occurrences of 'John Smith &
Sons'", but it doesn't find any.

Now, using this method, you could easily run into other problems.  Say you
sort the artists query to avoid the above.  What happens when (reverse
alphabetically) you've just replaced some string "Smith"?
Then, when it gets to "J", it will fail both "John Smith" and "John Smith &
Sons".

Trying to do this programmatically will be very challenging and you might
not like the result.

This email message may contain privileged and/or confidential information.
If you are not the intended recipient(s), you are hereby notified that any
dissemination, distribution, or copying of this email message is strictly
prohibited. If you have received this message in error, please immediately
notify the sender and delete this email message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality or
security of email transmissions.



~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276397
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Hi Bobby,

Out of interest, how would I reorder by length? In the query? MySQL 4.1.7

Thanks

Will

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:47
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")



~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276395
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Leitch, Oblio
Well, I've got a couple of comments, for what they're worth.  First,
you're not using RegEx.  Next, it appears that what you're doing here:


 

 #artist#",   "ALL")>


is you have two queries, one of the event(s), one grabbing a list of
artists.  Are you sorting the artists?  It looks to me like when you
loop over the artists, you're simply getting "John Smith" first.  So,
you have a statement like "change all occurrences of 'John Smith'",
which it does.  On the next pass, your statement reads "change all
occurrences of 'John Smith & Sons'", but it doesn't find any.

Now, using this method, you could easily run into other problems.  Say
you sort the artists query to avoid the above.  What happens when
(reverse alphabetically) you've just replaced some string "Smith"?
Then, when it gets to "J", it will fail both "John Smith" and "John
Smith & Sons".

Trying to do this programmatically will be very challenging and you
might not like the result.

This email message may contain privileged and/or confidential information. If 
you are not the intended recipient(s), you are hereby notified that any 
dissemination, distribution, or copying of this email message is strictly 
prohibited. If you have received this message in error, please immediately 
notify the sender and delete this email message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality or 
security of email transmissions.

~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276393
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
I think this is a good approach too, but it will get complicated because
you have to avoid matching text inside an existing already-hyperlinked
bit of text.  I suspect that this is less of a regex problem and the
solution will require searching for strings "manually", but at least the
solution can be described and wil work, so that's something.

Mark

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 8:47 AM
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 5:27 AM
To: CF-Talk
Subject: Regex help looking for a name in a string.

Ok, no doubt this is an easy RegEx question, but not for me.
 
I have two queries. One returns a set of names, the other a string which
may or may not contain one or more of the names.
 
I want to check for the existence of a name in the string, and if I find
it, make it a hyperlink.
 
So far I have this:
 

 

 #artist#",
"ALL")> 
 
Which works in a limited sense but stumbles where names are similar or
contain the same words - for example
 
John Smith
John Smith & Sons
 
If the string contained John Smith & Sons, the code would highlight the
John Smith part but not the rest.
 
Any suggestions?
 
Thanks
 
will
 






~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276391
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Sure. But it still wouldn't work. :)

-Original Message-
From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:56
To: CF-Talk
Subject: Re: Regex help looking for a name in a string.

It does really look like your using Regex's.  Since you're looking for strings 
essentially, can't you just use ReplaceNoCase?

On 4/27/07, Will Swain <[EMAIL PROTECTED]> wrote:
> Ok, no doubt this is an easy RegEx question, but not for me.
>
> I have two queries. One returns a set of names, the other a string 
> which may or may not contain one or more of the names.
>
> I want to check for the existence of a name in the string, and if I 
> find it, make it a hyperlink.
>
> So far I have this:
>
> 
>
> 
>   href='profiles.cfm?e=#profileID#' target='artistWin'>#artist#", 
> "ALL")> 
>
> Which works in a limited sense but stumbles where names are similar or 
> contain the same words - for example
>
> John Smith
> John Smith & Sons
>
> If the string contained John Smith & Sons, the code would highlight 
> the John Smith part but not the rest.
>
> Any suggestions?
>
> Thanks
>
> will
>
>
>
> 



~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276388
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Hi James,

See my previous reply. They aren't delimited by anything in particular.

Thanks.

will

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 14:27
To: CF-Talk
Subject: Re: Regex help looking for a name in a string.

Are the names delimited by something (like commas) or just strung together?

On 4/27/07, Will Swain  wrote:
> Ok, no doubt this is an easy RegEx question, but not for me.
>
> I have two queries. One returns a set of names, the other a string 
> which may or may not contain one or more of the names.
>
> I want to check for the existence of a name in the string, and if I 
> find it, make it a hyperlink.
>
> So far I have this:
>
> 
>
> 
>   href='profiles.cfm?e=#profileID#' target='artistWin'>#artist#", 
> "ALL")> 
>
> Which works in a limited sense but stumbles where names are similar or 
> contain the same words - for example
>
> John Smith
> John Smith & Sons
>
> If the string contained John Smith & Sons, the code would highlight 
> the John Smith part but not the rest.
>
> Any suggestions?
>
> Thanks
>
> will
>
>
>
> 



~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276387
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex help looking for a name in a string.

2007-04-27 Thread James Holmes
Are the names delimited by something (like commas) or just strung together?

On 4/27/07, Will Swain  wrote:
> Ok, no doubt this is an easy RegEx question, but not for me.
>
> I have two queries. One returns a set of names, the other a string which may
> or may not contain one or more of the names.
>
> I want to check for the existence of a name in the string, and if I find it,
> make it a hyperlink.
>
> So far I have this:
>
> 
>
> 
>   href='profiles.cfm?e=#profileID#' target='artistWin'>#artist#", "ALL")>
> 
>
> Which works in a limited sense but stumbles where names are similar or
> contain the same words - for example
>
> John Smith
> John Smith & Sons
>
> If the string contained John Smith & Sons, the code would highlight the John
> Smith part but not the rest.
>
> Any suggestions?
>
> Thanks
>
> will
>
>
>
> 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276386
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
No, sadly. It's just a field of text, sometimes the entries (names) are
seperated by commas, sometimes by new lines, but not everything is a name.

A bit of background - basically, this is a text description about an event,
and includes the names of the artists performing. I'm trying to implement a
function so that the client can add profiles about artists, and if the
artist has a profile this is reached by a link to a new window containing
more info, an image etc..

For example typical content in the works_string might look like:

David Rees-Williams Trio

A Taste of France: Jazz Transcriptions of the Classics.

But the only part that might need to be transformed to a link would be David
Rees-Williams Trio. That's fine, and the code I wrote can do that. However,
you might also have a profile for David Rees-Williams, so the code needs to
be clever enough to recognise that, and this is where the problem lies.

If I was building this from scratch I'd change the way the data is stored,
so that each artist was a separate entry in the db, and then it would be an
easy task. But I'm not and that's not really an option.

Thanks

Will

-Original Message-
From: Gaulin, Mark [mailto:[EMAIL PROTECTED] 
Sent: 27 April 2007 13:27
To: CF-Talk
Subject: RE: Regex help looking for a name in a string.

Is there a delimited in the list of names (work_string), something that you
can include in your reg ex to "anchor" it to an entire entry? 
Mark

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED]
Sent: Friday, April 27, 2007 5:27 AM
To: CF-Talk
Subject: Regex help looking for a name in a string.

Ok, no doubt this is an easy RegEx question, but not for me.
 
I have two queries. One returns a set of names, the other a string which may
or may not contain one or more of the names.
 
I want to check for the existence of a name in the string, and if I find it,
make it a hyperlink.
 
So far I have this:
 

 

 #artist#", "ALL")>

 
Which works in a limited sense but stumbles where names are similar or
contain the same words - for example
 
John Smith
John Smith & Sons
 
If the string contained John Smith & Sons, the code would highlight the John
Smith part but not the rest.
 
Any suggestions?
 
Thanks
 
will
 






~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276385
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex help looking for a name in a string.

2007-04-27 Thread Zaphod Beeblebrox
that should be "It doesn't really look like your using Regex's"

On 4/27/07, Zaphod Beeblebrox <[EMAIL PROTECTED]> wrote:
> It does really look like your using Regex's.  Since you're looking for
> strings essentially, can't you just use ReplaceNoCase?
>
> On 4/27/07, Will Swain <[EMAIL PROTECTED]> wrote:
> > Ok, no doubt this is an easy RegEx question, but not for me.
> >
> > I have two queries. One returns a set of names, the other a string which may
> > or may not contain one or more of the names.
> >
> > I want to check for the existence of a name in the string, and if I find it,
> > make it a hyperlink.
> >
> > So far I have this:
> >
> > 
> >
> > 
> >   > href='profiles.cfm?e=#profileID#' target='artistWin'>#artist#", "ALL")>
> > 
> >
> > Which works in a limited sense but stumbles where names are similar or
> > contain the same words - for example
> >
> > John Smith
> > John Smith & Sons
> >
> > If the string contained John Smith & Sons, the code would highlight the John
> > Smith part but not the rest.
> >
> > Any suggestions?
> >
> > Thanks
> >
> > will
> >
> >
> >
> > 

~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276384
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex help looking for a name in a string.

2007-04-27 Thread Zaphod Beeblebrox
It does really look like your using Regex's.  Since you're looking for
strings essentially, can't you just use ReplaceNoCase?

On 4/27/07, Will Swain <[EMAIL PROTECTED]> wrote:
> Ok, no doubt this is an easy RegEx question, but not for me.
>
> I have two queries. One returns a set of names, the other a string which may
> or may not contain one or more of the names.
>
> I want to check for the existence of a name in the string, and if I find it,
> make it a hyperlink.
>
> So far I have this:
>
> 
>
> 
>   href='profiles.cfm?e=#profileID#' target='artistWin'>#artist#", "ALL")>
> 
>
> Which works in a limited sense but stumbles where names are similar or
> contain the same words - for example
>
> John Smith
> John Smith & Sons
>
> If the string contained John Smith & Sons, the code would highlight the John
> Smith part but not the rest.
>
> Any suggestions?
>
> Thanks
>
> will
>
>
>
> 

~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276383
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Reorder by length so the longer names come first. Also, I think you only
need replace(works_string, artist, "#artist#", "all")

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 5:27 AM
To: CF-Talk
Subject: Regex help looking for a name in a string.

Ok, no doubt this is an easy RegEx question, but not for me.
 
I have two queries. One returns a set of names, the other a string which may
or may not contain one or more of the names.
 
I want to check for the existence of a name in the string, and if I find it,
make it a hyperlink.
 
So far I have this:
 

 

 #artist#", "ALL")>

 
Which works in a limited sense but stumbles where names are similar or
contain the same words - for example
 
John Smith
John Smith & Sons
 
If the string contained John Smith & Sons, the code would highlight the John
Smith part but not the rest.
 
Any suggestions?
 
Thanks
 
will
 




~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276382
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
Is there a delimited in the list of names (work_string), something that
you can include in your reg ex to "anchor" it to an entire entry? 
Mark

-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 27, 2007 5:27 AM
To: CF-Talk
Subject: Regex help looking for a name in a string.

Ok, no doubt this is an easy RegEx question, but not for me.
 
I have two queries. One returns a set of names, the other a string which
may or may not contain one or more of the names.
 
I want to check for the existence of a name in the string, and if I find
it, make it a hyperlink.
 
So far I have this:
 

 

 #artist#",
"ALL")> 
 
Which works in a limited sense but stumbles where names are similar or
contain the same words - for example
 
John Smith
John Smith & Sons
 
If the string contained John Smith & Sons, the code would highlight the
John Smith part but not the rest.
 
Any suggestions?
 
Thanks
 
will
 




~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276380
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Ok, no doubt this is an easy RegEx question, but not for me.
 
I have two queries. One returns a set of names, the other a string which may
or may not contain one or more of the names.
 
I want to check for the existence of a name in the string, and if I find it,
make it a hyperlink.
 
So far I have this:
 

 

 #artist#", "ALL")>

 
Which works in a limited sense but stumbles where names are similar or
contain the same words - for example
 
John Smith
John Smith & Sons
 
If the string contained John Smith & Sons, the code would highlight the John
Smith part but not the rest.
 
Any suggestions?
 
Thanks
 
will
 


~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276379
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2007-03-20 Thread Mark Leder
Thanks to all, Gareth's solution works great.  Though I want to study Ben's
more (one first glance I got bug-eyed looking at it).

Thanks,

Mark








~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273216
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: RegEx help

2007-03-20 Thread Ben Nadel
I like Gareth solution better than mine. ListFirst is way more straight
forward than a RegExp. 

..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Gareth Hughes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 5:07 PM
To: CF-Talk
Subject: Re: RegEx help

listFirst("/level-1/2nd-level/index.cfm","/") maybe?

- Original Message -
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Tuesday, March 20, 2007 9:03 PM
Subject: RegEx help


I'm really not very good at this, so I'm grateful for any help.  I've
been
using one of those regex editors, but I just can't seem to get my head
around the way it's used (regEx buddy).

What I want to do is take a URL string, such as
"/level-1/2nd-level/index.cfm" and just keep the string which is between
the
first set of "/" ("level-1" no quotes).  How would this be written?

Thanks,

Mark








~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273200
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2007-03-20 Thread Ben Nadel
 

This puts the first "directory" (level-1) into the first group
reference. Then it replaces the entire string with that group reference.


..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 5:03 PM
To: CF-Talk
Subject: RegEx help

I'm really not very good at this, so I'm grateful for any help.  I've
been using one of those regex editors, but I just can't seem to get my
head around the way it's used (regEx buddy).

What I want to do is take a URL string, such as
"/level-1/2nd-level/index.cfm" and just keep the string which is between
the first set of "/" ("level-1" no quotes).  How would this be written?

Thanks,

Mark






~|
ColdFusion MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273199
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: RegEx help

2007-03-20 Thread Gareth Hughes
listFirst("/level-1/2nd-level/index.cfm","/") maybe?

- Original Message - 
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Tuesday, March 20, 2007 9:03 PM
Subject: RegEx help


I'm really not very good at this, so I'm grateful for any help.  I've been
using one of those regex editors, but I just can't seem to get my head
around the way it's used (regEx buddy).

What I want to do is take a URL string, such as
"/level-1/2nd-level/index.cfm" and just keep the string which is between the
first set of "/" ("level-1" no quotes).  How would this be written?

Thanks,

Mark






~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273198
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RegEx help

2007-03-20 Thread Mark Leder
I'm really not very good at this, so I'm grateful for any help.  I've been
using one of those regex editors, but I just can't seem to get my head
around the way it's used (regEx buddy).

What I want to do is take a URL string, such as
"/level-1/2nd-level/index.cfm" and just keep the string which is between the
first set of "/" ("level-1" no quotes).  How would this be written?

Thanks,

Mark




~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273197
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex Help

2007-02-13 Thread Steve LaBadie
Ben,

Are you saying that I should be using functions like REFind(),
REReplace(), etc as apposed to using the cfinput validation?

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 7:00 PM
To: CF-Talk
Subject: Re: Regex Help

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269628
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Regex Help

2007-02-12 Thread Ben Doom
I'm pretty sure that IE6's JS engine does not correctly handle 
lookaheads.  IIRC, rather than performing an actual lookahead, it goes 
ahead and eats the characters.

Your best bet with this might be to check length with JS (cfform) and do 
the rest of the checking serverside.

--Ben Doom

Steve LaBadie wrote:
> I get an alert box that appears that says "error in password text"
> 
> 
> 
> Steve LaBadie, Web Manager
> East Stroudsburg University
> 200 Prospect St.
> East Stroudsburg, Pa 18301
> 570-422-3999
> [EMAIL PROTECTED]
> http://www.esu.edu
> 
> 
> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269591
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve LaBadie
I get an alert box that appears that says "error in password text"



Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269521
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve Brownlee
What happens in IE?  It's not the RegEx because that's compiled long
before you view the results in the browser, so I'm going with Ben's
previous post that it's some other factor.  Something in Javascript
perhaps.  Describe what happens in IE.


Steve Brownlee
http://www.fusioncube.net/


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 11:30 AM
To: CF-Talk
Subject: RE: Regex Help

Steve,

I doubled the "#" in the code and it worked in Firefox, but does not
work in IE6 Why would that be?

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 11:13 AM
To: CF-Talk
Subject: RE: Regex Help

Steve,

As for the CFML construct not found message, I'm going out on a limb and
guessing it's because you have the pound sign in the regular expression.
Somehow that's messing up a matching set of pound signs for CFML
parsing.  Check your code around that statement and see where else
you're using the pound signs.  Also check that if you have this pattern
inside a CFOUTPUT statement, then you'll need to escape it with the
double ##.


Steve Brownlee
http://www.fusioncube.net/


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve LaBadie
Steve,

I doubled the "#" in the code and it worked in Firefox, but does not
work in IE6 Why would that be?

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 11:13 AM
To: CF-Talk
Subject: RE: Regex Help

Steve,

As for the CFML construct not found message, I'm going out on a limb and
guessing it's because you have the pound sign in the regular expression.
Somehow that's messing up a matching set of pound signs for CFML
parsing.  Check your code around that statement and see where else
you're using the pound signs.  Also check that if you have this pattern
inside a CFOUTPUT statement, then you'll need to escape it with the
double ##.


Steve Brownlee
http://www.fusioncube.net/

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269517
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex Help

2007-02-12 Thread Steve Brownlee
Steve,

As for the CFML construct not found message, I'm going out on a limb and
guessing it's because you have the pound sign in the regular expression.
Somehow that's messing up a matching set of pound signs for CFML
parsing.  Check your code around that statement and see where else
you're using the pound signs.  Also check that if you have this pattern
inside a CFOUTPUT statement, then you'll need to escape it with the
double ##.


Steve Brownlee
http://www.fusioncube.net/


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 8:29 AM
To: CF-Talk
Subject: Regex Help

I have been playing around with some regex patterns and have run into a
snag.  One issue the regex works differently in IE6 and Firefox. I
didn't know the regex would behave differently in these browsers. The
main issue is validating the use of character class (@#$^_*).  Do I need
to escape these? I have tried several ways of setting up the regex. I
get an "Invalid CFML construct found" error.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@#$^_*])(?!.*s).{8,127}$

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])([EMAIL PROTECTED])
(?!.*s).{8,127}$

(?=^.{8,127}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])([EMAIL PROTECTED]).*$

Any guidance would be appreciated - Also can anyone recommend specific
books on how to create and understand them better?

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.esu.edu <http://www3.esu.edu> 

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269516
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve LaBadie
Steve,

I still get an invalid token error

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269515
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex Help

2007-02-12 Thread Steve LaBadie
The only thing I am using JS for is to compare that the passwords match.
I am using CFFORM & CFINPUT.






Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu


~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269514
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve Brownlee
Steve,

I think this is the pattern you're looking for.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\$|@|#|\^|_|\*]).{
8,127}

If you include the following lookahead

(?!.*[^A-Za-z0-9])

Then that basically negates the special characters pattern because it's
saying "none of the characters in the string should be
non-alphanumeric". 

Hope that helps.


Steve Brownlee
http://www.fusioncube.net/


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 10:39 AM
To: CF-Talk
Subject: RE: Regex Help

Bobby,

I get an "invalid token | found" error.

To answer your question my match is predicated on one of these
characters (@#$^_*) being present.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9@|#|\$|\
^|_|\*])(?!.*s).{8,127}$


^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@|#|\$|\^|_|\*])(?!.*s).{8,127}$

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269511
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Regex Help

2007-02-12 Thread Ben Doom
Since you say that it behaves differently in IE vs FF, does that mean 
that you are writing these in JavaScript?  Are they being passed in a 
CFForm tag, or sent directly?  Are you double-pounding (##) as necessary 
to escape the pound sign in a CFOUTPUT block?

--Ben Doom

Steve LaBadie wrote:
> Bobby,
> 
> I get an "invalid token | found" error.
> 
> To answer your question my match is predicated on one of these
> characters (@#$^_*) being present.
> 
> ^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9@|#|\$|\
> ^|_|\*])(?!.*s).{8,127}$
> 
> 
> ^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
> @|#|\$|\^|_|\*])(?!.*s).{8,127}$

~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269510
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Regex Help

2007-02-12 Thread Steve LaBadie
Bobby,

I get an "invalid token | found" error.

To answer your question my match is predicated on one of these
characters (@#$^_*) being present.

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9@|#|\$|\
^|_|\*])(?!.*s).{8,127}$


^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@|#|\$|\^|_|\*])(?!.*s).{8,127}$

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]
http://www.esu.edu



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269509
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex Help

2007-02-12 Thread Bobby Hartsfield
> All of those will need to be escaped when literally trying to match them
> + * ? . [ ^ $ ( ) { | \

All of THESE not those :-)

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 10:08 AM
To: CF-Talk
Subject: RE: Regex Help

You will need to escape SOME of them.

All of those will need to be escaped when literally trying to match them
+ * ? . [ ^ $ ( ) { | \

There is also a [:punct:] that matches all of these characters
! ' # S % & ` ( ) * + , - . / : ; < = > ? @ [ / ] ^ _ { | } ~

Are you trying to match the EXACT pattern of @#$^_* or just any of them?

To match the sequence:
@#\$\^_\*

To match just 1 of them
@|#|\$|\^|_|\*

As for books, Ben Forta's Teach yourself regular expressions in 10 minutes
is a quick, easy to follow crash course as well as decent reference when
your mind draws a blank.


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 8:29 AM
To: CF-Talk
Subject: Regex Help

I have been playing around with some regex patterns and have run into a
snag.  One issue the regex works differently in IE6 and Firefox. I
didn't know the regex would behave differently in these browsers. The
main issue is validating the use of character class (@#$^_*).  Do I need
to escape these? I have tried several ways of setting up the regex. I
get an "Invalid CFML construct found" error.

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@#$^_*])(?!.*s).{8,127}$

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])([EMAIL PROTECTED])
(?!.*s).{8,127}$

 

(?=^.{8,127}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])([EMAIL PROTECTED]).*$

 

 

Any guidance would be appreciated - Also can anyone recommend specific
books on how to create and understand them better?

 

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.esu.edu <http://www3.esu.edu> 

 







~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269503
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Regex Help

2007-02-12 Thread Bobby Hartsfield
You will need to escape SOME of them.

All of those will need to be escaped when literally trying to match them
+ * ? . [ ^ $ ( ) { | \

There is also a [:punct:] that matches all of these characters
! ' # S % & ` ( ) * + , - . / : ; < = > ? @ [ / ] ^ _ { | } ~

Are you trying to match the EXACT pattern of @#$^_* or just any of them?

To match the sequence:
@#\$\^_\*

To match just 1 of them
@|#|\$|\^|_|\*

As for books, Ben Forta's Teach yourself regular expressions in 10 minutes
is a quick, easy to follow crash course as well as decent reference when
your mind draws a blank.


-Original Message-
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 8:29 AM
To: CF-Talk
Subject: Regex Help

I have been playing around with some regex patterns and have run into a
snag.  One issue the regex works differently in IE6 and Firefox. I
didn't know the regex would behave differently in these browsers. The
main issue is validating the use of character class (@#$^_*).  Do I need
to escape these? I have tried several ways of setting up the regex. I
get an "Invalid CFML construct found" error.

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@#$^_*])(?!.*s).{8,127}$

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])([EMAIL PROTECTED])
(?!.*s).{8,127}$

 

(?=^.{8,127}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])([EMAIL PROTECTED]).*$

 

 

Any guidance would be appreciated - Also can anyone recommend specific
books on how to create and understand them better?

 

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
http://www.esu.edu <http://www3.esu.edu> 

 





~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269502
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Regex Help

2007-02-12 Thread Steve LaBadie
I have been playing around with some regex patterns and have run into a
snag.  One issue the regex works differently in IE6 and Firefox. I
didn't know the regex would behave differently in these browsers. The
main issue is validating the use of character class (@#$^_*).  Do I need
to escape these? I have tried several ways of setting up the regex. I
get an "Invalid CFML construct found" error.

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?=.*[
@#$^_*])(?!.*s).{8,127}$

 

^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])([EMAIL PROTECTED])
(?!.*s).{8,127}$

 

(?=^.{8,127}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])([EMAIL PROTECTED]).*$

 

 

Any guidance would be appreciated - Also can anyone recommend specific
books on how to create and understand them better?

 

 

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
[EMAIL PROTECTED]  
http://www.esu.edu  

 



~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269494
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: RegEx help

2006-11-28 Thread Patrick McElhaney
On 11/28/06, Steve Brownlee <[EMAIL PROTECTED]> wrote:

>
> ^(?=.*[A-Za-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?!.*\s).{6,12}$
>

Hmm... I don't think this part is necessary:
"(?!.*[^A-Za-z0-9])(?!.*\s)"  No one said anything about
non-alphanumeric characters being disallowed, did they?

If that's what you're going for we can simplify a bit.

^(?=.*[A-Za-z])(?=.*[0-9])[A-Za-z0-9]{6,12}$


Patrick


-- 
Patrick McElhaney
704.560.9117

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261955
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
NOW you got it :-) good job. I tried a couple times myself. Then gave up...
then I got annoyed and tried some more wash -> rinse -> repeat lol
 

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 


-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 5:20 PM
To: CF-Talk
Subject: RE: RegEx help

Sorry, can't get this outta my head now.  Too interesting a challenge.
I believe this one will do it.

^(?=.*[A-Za-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?!.*\s).{6,12}$

LOL, as was said originally, easier to break it up into two expressions
than worry about creating a monstrous pattern (as shown above). 

Steve Brownlee
http://www.fusioncube.net

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 4:27 PM
To: CF-Talk
Subject: RE: RegEx help

'1a11' fails
'a1aa' fails
'1a' fails
'a1' fails

Actually... I guess everything I feed that one fails. Just go with Bens
original solution. It made it MUCH easier.





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261935
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: RegEx help

2006-11-28 Thread Ben Nadel
Nce :D

Yeah, I know what you mean. I have gone back to this like three times
and couldn't figure it out. I have never used chained look aheads.
That's a nice little trick (or rather usage of the language). Freakin'
sweet. 


..
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 5:20 PM
To: CF-Talk
Subject: RE: RegEx help

Sorry, can't get this outta my head now.  Too interesting a challenge.
I believe this one will do it.

^(?=.*[A-Za-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?!.*\s).{6,12}$

LOL, as was said originally, easier to break it up into two expressions
than worry about creating a monstrous pattern (as shown above). 

Steve Brownlee
http://www.fusioncube.net

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261934
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: RegEx help

2006-11-28 Thread Steve Brownlee
Sorry, can't get this outta my head now.  Too interesting a challenge.
I believe this one will do it.

^(?=.*[A-Za-z])(?=.*[0-9])(?!.*[^A-Za-z0-9])(?!.*\s).{6,12}$

LOL, as was said originally, easier to break it up into two expressions
than worry about creating a monstrous pattern (as shown above). 

Steve Brownlee
http://www.fusioncube.net

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 4:27 PM
To: CF-Talk
Subject: RE: RegEx help

'1a11' fails
'a1aa' fails
'1a' fails
'a1' fails

Actually... I guess everything I feed that one fails. Just go with Bens
original solution. It made it MUCH easier.



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261932
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
'1a11' fails
'a1aa' fails
'1a' fails
'a1' fails

Actually... I guess everything I feed that one fails. Just go with Bens
original solution. It made it MUCH easier.

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 


-Original Message-
From: Patrick McElhaney [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 4:09 PM
To: CF-Talk
Subject: Re: RegEx help

On 11/28/06, Steve Brownlee <[EMAIL PROTECTED]> wrote:
> What engine are you testing with?  Patrick's pattern validates against
> all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5
> implmenetations.

He's saying "all numeric" isn't valid; there must be at least one letter.

If you want to require at least one number *and at least one letter*
this should work.

/^(?=.*\d)(?=.*[A-Za-z]).{6,12}$/

Patrick


-- 
Patrick McElhaney
704.560.9117



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261925
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: RegEx help

2006-11-28 Thread Patrick McElhaney
On 11/28/06, Steve Brownlee <[EMAIL PROTECTED]> wrote:
> What engine are you testing with?  Patrick's pattern validates against
> all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5
> implmenetations.

He's saying "all numeric" isn't valid; there must be at least one letter.

If you want to require at least one number *and at least one letter*
this should work.

/^(?=.*\d)(?=.*[A-Za-z]).{6,12}$/

Patrick


-- 
Patrick McElhaney
704.560.9117

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261923
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
All numeric and all alpha should fail according to the requirements of th
original post
 

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 


-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 3:26 PM
To: CF-Talk
Subject: RE: RegEx help

What engine are you testing with?  Patrick's pattern validates against
all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5
implmenetations. 

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 3:19 PM
To: CF-Talk
Subject: RE: RegEx help

No it doesn't. Neither does yours. Patrick's was closer though.

The only thing I could find that it failed on was an all numeric string
6 to
12 characters long. Yours failed for that as well as a string of all
letters
6 to 12 characters long.

Where's Ben Doom? lol



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261920
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2006-11-28 Thread Steve Brownlee
What engine are you testing with?  Patrick's pattern validates against
all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5
implmenetations. 

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 3:19 PM
To: CF-Talk
Subject: RE: RegEx help

No it doesn't. Neither does yours. Patrick's was closer though.

The only thing I could find that it failed on was an all numeric string
6 to
12 characters long. Yours failed for that as well as a string of all
letters
6 to 12 characters long.

Where's Ben Doom? lol

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261913
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
No it doesn't. Neither does yours. Patrick's was closer though.

The only thing I could find that it failed on was an all numeric string 6 to
12 characters long. Yours failed for that as well as a string of all letters
6 to 12 characters long.

Where's Ben Doom? lol

..:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

 


-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 2:47 PM
To: CF-Talk
Subject: RE: RegEx help

Forget my attempt, Patrick's works perfectly. 

-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 28, 2006 2:29 PM
To: CF-Talk
Subject: RE: RegEx help

You could try this...

\b[(\d+|\w+)]{6,12}\b 




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:261911
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


<    1   2   3   4   5   6   7   >