CFHTTP Regex... I'm horrible at regex

2012-05-31 Thread Roger Anthony
I'm trying to pull total impressions from the administration screens on a Xerox printer but for the life of me can't seem to get the regex right. I'm thinking the Less Than and Greater Than signs are what's tripping me up, but as frustrated as I am at the moment I can't tell you for sure. So,

Re: CFHTTP Regex... I'm horrible at regex

2012-05-31 Thread .jonah
Here's a rad tool for extracting regex patterns: http://txt2re.com/ It even outputs CF code. (I't output is pretty generic, but is a good staring point and gives nice insight into how RE works.) .jonah On 5/31/12 1:10 PM, Roger Anthony wrote: I'm trying to pull total impressions from the

Re: CFHTTP Regex... I'm horrible at regex

2012-05-31 Thread Michael Dinowitz
So you want the XXX in the following? td width=60%Total Impressions/td td width=5%XXX/td td width=35%Impressions/td What you want is td width=5%(.*?)/td (.*?) = capture any character, zero or more times, but only as many as needed until the next part of the expression. This will capture