Re: Regex help!

From: Date: Fri, 05 Jan 2001 01:37:19 +0000
Subject: Re: Regex help!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32788@lists.php.net to get a copy of this message
> look at ereg(); although efficiency experts may > want to chime in. how often will you be running > this? (can you change "phrase1" or "phrase2" in > you log format?) The log files are generated by something else, so I cannot change the phrases (and besides, the phrases indicate what action was taken between two keywords, so they must remain). How often? Well, there is several hundred lines in a single log file. Each line can have one of 70-100 different formats (I need to compare them until I find the correct one). That said, the work does NOT have to be run real-time. I will kick off a command line php script to perform the processing for me! > this not-entirely-elegant snippet should work: I don't totally understand it, but I will see how I go.... thanks :) > best, > jeff ====================================================================== Murray Shields Email: murray@globalcat.com.au MU Systems Pty Ltd Phone: +61 7 3351 6677 Global Catalogs Pty Ltd Phone: +61 7 3351 4777

« previous php.general (#32788) next »