if(strlen(trim($steamid)) != 0)
{
$regex = "/^STEAM_0:(0|1):[0-9]{1}[0-9]{0,8}$/";
if(!ereg($regex, $ssteamid)){
echo "STEAM ID invalida";
}
}
Hi, my problem is that this isn't working as it should.
STEAM ID's have maximum of 18 characters and minimum of 17.
they always start with: STEAM_0:
Two true examples would be: STEAM_0:0:11111111 ; STEAM_0:1:1111111
And another thing is that after STEAM_0: always come an 0 or an 1 like demonstrated in the examples.
I hope you can help me because I have little knowledge in this, thnkas in advance