回复 nikbobo
看来你完全不懂正则呀.
user3000 发表于 2013-8-19 17:42
没路子学。
貌似还是不对。Func _GetLatestVersion($File, $Cloud, $Id)
Local $Version = FileGetVersion($File)
;Local $Latest = $Cloud & "/?id=" & $Id & "&page=latest"
;MsgBox(0, "DeBug", $Latest);DeBug
;If InetGetSize($Latest) > 0 Then
Local $t_Version = "4.0.0.0"
;MsgBox(0, "DeBug", $t_Version);DeBug
If StringRegExp($t_Version, '[1-9]\d*\.\d+\.\d+\.\d+$', 0) Then
MsgBox(0, "DeBug", 1);DeBug
$Version = $t_Version
EndIf
;EndIf
Return $Version
EndFunc ;==>_GetLatestVersion
|