This right here is what I meant by "I'm no regex expert".

if ($s_output =~ s/^(?:.*?)?L (\d\d)\/(\d\d)\/(\d{4}) -
(\d\d):(\d\d):(\d\d):\s*//)

Nice Leopard,
Thanks!

Keeper

-----Original Message-----
From: milchworld [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 23, 2008 2:03 PM
To: Half-Life dedicated Linux server mailing list
Cc: 'Half-Life dedicated Win32 server mailing list'
Subject: Re: [hlds_linux] HLStastX usage

I talked to Tobi and he fixed it:
Another way to catch this problem is to stop the regex from being too 
greedy:

This was the original line 1822 in hlstats.pl:

if ($s_output =~ s/^.*L (\d\d)\/(\d\d)\/(\d{4}) - 
(\d\d):(\d\d):(\d\d):\s*//)

This is the new fixed line 1822 in hlstats.pl



Have fun
Leopard


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to