ENH: separate out regex and escape a .

pull/204/head
Daniel Black 12 years ago
parent 54c2bf3dfb
commit de56347619

@ -38,6 +38,9 @@ __kernel_prefix = kernel: \[\d+\.\d+\]
__hostname = \S+
__bsd_syslog_verbose = (<[^.]+\.[^.]+>)
#
# Common line prefixes (beginnings) which could be used in filters
#
@ -47,4 +50,4 @@ __hostname = \S+
# <auth.info> appearing before the host as per testcases/files/logs/bsd/*.
#
# This can be optional (for instance if we match named native log files)
__prefix_line = \s*(<[^.]+.[^.]+>)?\s*(?:%(__hostname)s )?(?:%(__kernel_prefix)s )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s*
__prefix_line = \s*%(__bsd_syslog_verbose)s?\s*(?:%(__hostname)s )?(?:%(__kernel_prefix)s )?(?:@vserver_\S+ )?%(__daemon_combs_re)s?\s*

Loading…
Cancel
Save