Re: log tailing

From: Date: Sat, 30 Jun 2012 04:38:18 +0000
Subject: Re: log tailing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-318345@lists.php.net to get a copy of this message
On Fri, Jun 29, 2012 at 3:49 AM, Mihamina Rakotomandimby <mihamina@rktmb.org> wrote: > I have a /var/log/messages and /var/log/syslog file to parse to extract > information from. > > I have the to extract the date, and some information in the line. [snip] > I just need help on the right regexp function to use. > Would you know some PHP/regexp tutorials for that? The best documentation I've ever found on Regexes is O'Reilly's "Mastering Regular Expressions" (3rd ed is 2006, but REs haven't changed since then). <http://shop.oreilly.com/product/9780596528126.do> Only problem is it is hella expensive. (Well another problem is it is hella big: >500 pages.) Apart from that, there are *tons* of tutorials on the net. Just google up "regular expression tutorials" and you should see pages and pages of them.

« previous php.general (#318345) next »