anagramlog.frink

View or download anagramlog.frink in plain text format


/** This is a simple program to see what anagrams people are generating on my
    website. */


use HTMLUtils.frink

for line = lines["file:///var/log/httpd/access_log"]
{
   if [orig, include] = line =~ %r/"GET \/lookup\/nph-anagram.pl\?orig=([^&"]*)[^"]*include=([^&"]*)/
   {
      orig =~ %s/\+/ /g
      orig = URLDecode[orig]
      include =~ %s/\+/ /g
      include = URLDecode[include]
      println[orig + (include ? " ($include)" : "")]
   }
}


View or download anagramlog.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 17646 days, 9 hours, 34 minutes ago.