DJ, may be i'm stupid, but what the hell does AME with ampersands in regular expressions? I need to define "&q=" pаttern in thе middle of URL. Somerthing like "(.+)(&q=)(.*)". But it trigger only when i set "(.+)(q=)(.*)". Tryed (.*)(&q=)(.*) with the same result.
What's wrong? Pattern is 100% correct, and test samples pass ok in preg debugger. I've rolled back to 2.0.2 but situation is the same. Any ideas?
Link example:
http://www.google.ru/search?hl=ru&newwindow=1&q=%D0%BF%D0%BE%D0%B8%D1%8 1%D0%BA+%D0%B2+%D0%B3%D1%83%D0 %B3%D0%BB%D0%B5&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%B A&lr=&aq=f&oq=
http://www\.google\.[\w]{2,4}/search\?(.+)(q=[\w\d%+]+)(.*) - works, but catches wrong parameter (&aq=f)
http://www\.google\.[\w]{2,4}/search\?(.+)(&q=[\w\d%+]+)(.*) - doesn't works (brokes parceing and even shows plaint text instead of link).
|