Objective: a regex that matches only printable characters
Should not match:
Should match: *, A
Testing the regex: ![\P{Cc}\P{Cn}\P{Cs}]
Testing whether it matches character:
Results: 1
Result: !
Testing whether it matches character: *
Results: 1
Result: !*
Testing whether it matches character: A
Results: 1
Result: !A
Testing the regex: ![^\p{Cc}^\p{Cn}^\p{Cs}]
Testing whether it matches character:
Results: 0
Testing whether it matches character: *
Results: 1
Result: !*
Testing whether it matches character: A
Results: 1
Result: !A