A G E N T
2008-11-06 23:05:22
Hey all,
I'm pretty sure SCAR uses preg regexes, but not sure what parts are implemented / am I doing it wrong?
Is it not built in, or am I wrong?
I'm pretty sure SCAR uses preg regexes, but not sure what parts are implemented / am I doing it wrong?
program New;
var
page : string;
begin
page := GetPage('http://www.google.ca/search?hl=en&q=test&btnG=Google+Search&meta=');
page := copy(page, pos('<div id=res class=med>', page), length(page));
writeln(ReplaceRegex(page, '<h3 class=r>(.*)<\/h3>', '$1'));
end.
Calling the ReplaceRegex actually replaces the found regex with '$1' rather than the first captured parenthesis substring, as expected… :(Is it not built in, or am I wrong?