I’m trying to detect non-printable chars in a string
I use the following regex pattern in PHP
[^P{Cc}p{Cf}p{Cn}p{Cs}nrt]
When I use it in Go a compile error is returned
regexp.MustCompile(`[^P{Cc}p{Cf}p{Cn}p{Cs}nrt]`)
error
error parsing regexp: invalid character class range: `p{Cn}`