On Thu, 28 Mar 2013 17:08:46 -0700 Mark Engelberg <mark.engelb...@gmail.com> wrote:
> Bug or feature? Certainly a feature for complex patterns with whitespace and embedded comments. For example, the following regexp parses line in Combined Log Format used by Apache httpd and other web servers: (def clf-pattern #"(?x)^ (\S*)\s # remote host (\S*)\s # remote logname (\S*)\s # remote user \[([^\]]+)\]\s # time the request was received \"([^\"\\]*(?:\\.[^\"\\]*)*)\"\s # first line of request (\S*)\s # status (\S*)\s # size of response in bytes \"([^\"\\]*(?:\\.[^\"\\]*)*)\"\s # referer \"([^\"\\]*(?:\\.[^\"\\]*)*)\" # user-agent \s*$") You probably would not want it to be printed in a single line. -- Mikhail -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.