if this is a duplicate I apologise but i couldnt find anything on google after hours of searching, im pretty new to string manipulation and dont really know the correct terminology to find the information i want.
Basically I am manipulating this string
Date Time Name IP UniqueID
$line = 02.12.2013 16:00:03: Connor Bergolio (75.13.15.229:5557) fcfd6ba862c7461a88e2b13babc691dd
So I am trying to retreive the name, However as they can choose whatever name they want, it could have 1 space or 10 spaces so explode is out of the question.
Now I was wondering if it is possible to run a pregmatch using 2 variables. that will return the information between
$pattern1 = '$time, $ip';
preg_match($pattern1, $line, $name);
Looking at that, its way off, but I'm pretty much at a loss
Im using `$IPpattern = '/([0-9-():.)]{19,23})/'; to get the IP maybe using that and a search for time together?
Thanks in advance`