Skip to content

Instantly share code, notes, and snippets.

@keedi
Created July 7, 2010 12:16
Show Gist options
  • Save keedi/466613 to your computer and use it in GitHub Desktop.
Save keedi/466613 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use 5.010;
use strict;
use warnings;
my $contents = do { local $/; <> };
my $regexp = qr{
<td \s* class="tm">
\s*
<a
\s+
href="http://valeptr.com/scripts/runner.php\?IM=.*?"
\s+
target="_inbox"
\s*
>
(.*?)
</a>
\s*
</td>
}xms;
while ($contents =~ /$regexp/gxms) {
say "[$1]";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment