关于正则问题
如何判断名字前面是否有非字符的符号?并且去除,谢谢!好久没用了。#include <Array.au3>
local$arr1=["'"&"小明","小霞"," 小辉"]
_ArrayDisplay($arr1, "测试", Default, 8) #include <Array.au3>
Local $arr1 = ["'" & "小明", "??小霞", "? ? ? ? 小辉"]
For $i = 0 To UBound($arr1) - 1
$arr1[$i] = StringRegExpReplace($arr1[$i], '[\x00-\xff]+', '')
Next
_ArrayDisplay($arr1)
水木子 发表于 2018-10-17 11:56
先谢谢了,TAb也是属于\x00-\xff范围内的吗?
页:
[1]