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("<a +[ -~]+productID=[ -~]+</a>",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("<a +?[ -~]+?productID=[ -~]+?</a>",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