|
Posted by Mike Collins on 08/27/06 12:00
On Sun, 27 Aug 2006 12:18:29 +0100, Unknown <Unknown@unknown.com>
wrote:
>if( preg_match("(^Destroyed\:.*?)", trim($arrLines[$i])) && $strMode ==
>0) {
>$strVICTIMTYPE = trim(substr(trim($arrLines[$i]), 11, strlen($arrLines
>[$i])));
>
>...what this does is put whatever is past "Destoyed:" into the
>"$strVICTIMTYPE" string.
>
>Now things have changed with the way some information is presented and
>we can have the following information...
>
>Destroyed: <Various> Control Tower / <Various> (Laid The Final Blow)
if(
preg_match("(^Destroyed\:.*?)", trim($arrLines[$i]))
&& $strMode == 0) {
$strVICTIMTYPE =
preg_replace('/(^Destroyed.*Control Tower)\/
(.*)\(Laid The Final Blow\)/ix', $1 . ' ' . $2, $arrLines[$i]);
That's my best guess. Good luck.
Navigation:
[Reply to this message]
|