Skip to content

Instantly share code, notes, and snippets.

@danielharan
Created October 5, 2008 16:17
Show Gist options
  • Save danielharan/14898 to your computer and use it in GitHub Desktop.
Save danielharan/14898 to your computer and use it in GitHub Desktop.
Dir.glob("*").each do |pc|
File.open(pc).read =~ /aug08cpocRidingProfileTitle>([^<]*)</
puts "#{pc},#{$1}"
end
Dir.glob("*").each do |pc|
File.open(pc).read.split("\n").first =~ /InfovoteMain\.aspx\?L=e&ED=(\d{5})&EV/
puts "#{pc},#{$1}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment