Ok, thanks, next question:
In my previous post you saw that I'm trying to parse a log file made up of several hundreds of lines. Each line follows the exact format:
6/25 19:30:02.640 EVENT.
where "EVENT" represents a string. I asked the first question to make sure that the script only parses lines starting with a date and time. Now that that works, I need to parse the EVENT string itself for specific information.
There are only a handful of different formats the EVENT string can be in, and each format has its own constants.
An example of one of the formats for the EVENT string is this:
[PLAYERS]'s [ABILITY] hits you for [NUMBER] [TYPE] damage.
Everything in brackets is variable. How would I go about finding all the lines in the log that are in that format, and putting the those variables into PHP variables?