Quote:
Originally Posted by aoeuhtns
Perl is probably the way to go. I did my last few screen scrapes in PHP, but the grunt of the code is all preg_replace (which is the perl regular expression engine).
|
Same here. Perl has an excellent regex engine. I used it to make a nice little newsfeed app that feeds search terms to news.google.com and parses out the articles.
php is just about as powerful since it uses the perl engine, but it's annoyingly verbose when you're doing a bunch of regex stuff. Example:
php: $input = preg_replace("cat", "dog", $input);
perl: $input =~ s/cat/dog/g;