回复 1# 316428696 #include <Array.au3>
$Str = _
'{"sentences":[{"trans":"黑","orig":"黑","translit":"hēi"}],"src":"en"}' & @CRLF & _
'{"sentences":[{"trans":"Black","orig":"黑","translit":""}],"dict":[{"pos":"名词","terms":["black","blackness","carcajou","dark","nigritude"]},{"pos":"形容词","terms":["black","dark"]},{"pos":"副词","terms":["darkly"]}],"src":"en"}' & @CRLF & _
'{"sentences":[{"trans":"黒","orig":"黑","translit":"kuro "}],"src":"en"}' & @CRLF & _
'{"sentences":[{"trans":"嘿嘿","orig":"黑","translit":"geomjeong"}],"src":"en"}'
Msgbox(0, '源', $str)
$sR = StringRegExp($str, '[^\x00-\xff]+', 3)
_ArrayDisplay($sR, '中文字符')
|