var %t = $chr(15) test!123 $chr(9) echo -sg ^a-z: $regex(%t,/[^ a-z]/gi) --- \S\W: $regex(%t,/[^\s\w]/g) --- punct: $regex(%t,/[[:punct:]]/g)