cfset keywords = reMatchNoCase([?|][p|q]=[^]+, referer)
This is incorrect - the | is a literal in character classes.
You want [?][pq]=[^]+
~|
Order the Adobe Coldfusion Anthology now!
Thanks for the update Peter.
-Original Message-
From: Peter Boughton [mailto:bought...@gmail.com]
Sent: Tuesday, August 24, 2010 4:58 AM
To: cf-talk
Subject: Re: RegEx: Grabbing Keywords from Referers
cfset keywords = reMatchNoCase([?|][p|q]=[^]+, referer)
This is incorrect
Nice solution John. Thanks! Definitely different than mine.
I wonder if the regex gurus have a solution as well. ;)
-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: Monday, August 23, 2010 1:00 PM
To: cf-talk
Subject: Re: Grabbing Keywords from Referers
This
I wonder if the regex gurus have a solution as well.
Oh, I'm sure. :-)
On Mon, Aug 23, 2010 at 12:54 PM, Che Vilnonis ch...@asitv.com wrote:
Nice solution John. Thanks! Definitely different than mine.
I wonder if the regex gurus have a solution as well. ;)
-Original Message-
=coldfusion
q=f
Not sure where the second q= came from. I just did a search on the Google
homepage for ColdFusion.
andy
-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com]
Sent: Monday, August 23, 2010 12:54 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers
Nice
-
From: Che Vilnonis [mailto:ch...@asitv.com]
Sent: Monday, August 23, 2010 12:54 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers
Nice solution John. Thanks! Definitely different than mine.
I wonder if the regex gurus have a solution as well. ;)
-Original Message
=CJtNhsL9yTK_zHIWWhgTb-J3tDwAAAKoEBU_QXcSj
It only matches
?q=coldfusion
or
q=coldfusion
-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: Monday, August 23, 2010 1:48 PM
To: cf-talk
Subject: Re: RegEx: Grabbing Keywords from Referers
Not sure where the second q= came
Wow. That works very well. Thanks!
-Original Message-
From: Andy Matthews [mailto:li...@commadelimited.com]
Sent: Monday, August 23, 2010 2:55 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers
Ah. The text was so small in my testing app that I couldn't tell what
Andy thanks again so much... this seems to work with Yahoo,Bing Google.
My RegEx skills are a work in progress.
cfset referer =
http://search.yahoo.com/search;_ylt=Aqj24Omsi1LGKlDY4_G1hi6bvZx4?fr=yfp-t-7
01-stoggle=1cop=mssei=UTF8p=children%20karate%20uniform
cfset keywords =
Awesome Che! Glad I could be of help!
andy
-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com]
Sent: Monday, August 23, 2010 3:01 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers
Andy thanks again so much... this seems to work with Yahoo,Bing Google
10 matches
Mail list logo