Works fine. But, no white space in front and no extra junk in back is also good. $name =~ s/\s*\[No C-D\].*\n//g; does the trick. e.g. "This is a dumb name [No C-D] blah!" would be shortened to "This is a dumb name".
You would place this in the hlstats or psychostats or whatevers script where it processes the log entries.
Also, if it you got a program that isn't written in Perl, execute this as a shell command: "perl -e '$_ = <>; s/\s*\[No C-D\].*\n//g; print;'". It does the same as the aforementioned code.
--agenthh
SQLBoy wrote:
Almost, but I think its:
$name =~s/\[No C-D\]//g;
I think..I suck at regex.
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux

