Thread Regülarer Ausdrück zu einem hash array (19 answers)
Opened by Tom99 at 2008-10-04 15:42

Tom99
 2008-10-04 16:12
#115152 #115152
User since
2008-10-04
10 Artikel
BenutzerIn
[default_avatar]
Cool, danke ich werd mir die Intro mal durch lesen.
Die Lösung von Matthias war genau das was ich gesucht habe.
Für was steht das m! und das !xg ?
Mhm irgendwie gehts doch nicht so wie ich wollte.
Ich habs jetzt so gelöst:
Code: (dl )
1
2
3
4
5
6
7
	local @array = ($logline =~ /([^\\]+)\\([^\\]+)/g);
local %playerinfo;
for ($i = 0; $i <= @array; $i += 2)
{
$playerinfo{$array[$i]} = $array[$i+1];
}
print Dumper \%playerinfo;

View full thread Regülarer Ausdrück zu einem hash array