Hab ein kleines Problem mit StringRegExp().
Ich will einfach von HTML eine Zahl "rausnehmen". In diesen Fall brauche ich die zahl "62" von diesen String: {initUfo("0", {id:62}.
Sollte einfach sein, ist es aber irgendwie nicht.
Code:
$string = '{initUfo("0", {id:62}' $string2 = '{initUfo("0", {id:(\d+?)}' $aReturn = StringRegExp($string , $string2 , 3) MsgBox(64, "Found it!", $aReturn[0])
==> Subscript used with non-Array variable.:
MsgBox(64, "Found it!", $aReturn[0])
Ich hab es ein par mal probier, und es scheint das Problem liegt an "(" Zeichen.
Kann mir jemand dabei helfen?