Created
September 15, 2011 20:13
-
-
Save srid/1220343 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn parse-log-line | |
[line] | |
(next (re-matches #"(\[.+\]) ([^\s]+) \- (\w+ \w+ \w+)\s+(\w+) \-\- (.+)" line))) | |
(defn play | |
[] | |
(let [line "[2011-09-15 11:28:58] dea - 1259 05ed 7573 INFO -- Max Memory set to 4.0G"] | |
(loop [[x & xs] (parse-log-line line)] | |
(if x | |
(do | |
(println x) | |
(recur xs)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
best I can come up with: