Hi,
The following regular expressions give different results in QM and Powershell
How do I express Asian characters with regular expressions?
No effect:
str pattern="\$[a-zA-Z_][a-zA-Z0-9\u4e00-\u9fa5]*"
Macro Macro24
The following regular expressions give different results in QM and Powershell
How do I express Asian characters with regular expressions?
No effect:
str pattern="\$[a-zA-Z_][a-zA-Z0-9\u4e00-\u9fa5]*"
$s=@'
function fn ($sp1姓名, $ip2年龄)
{
"hello, "
}
'@
$m = [regex]"\$[a-zA-Z_][^\W]*"
$m.Matches($s).Value
Macro Macro24