My Ismatch function is not working properly. I put special characters but not getting error thus not resetting my textinput. Is my formula correct?

Hi @marccyrel041 ,
Please try:
If(
!IsMatch(TextInput4.Text, "[a-zA-Z0-9 ]*"), // Checks if the text contains special characters
Notify("Special characters are not allowed", NotificationType.Error);Reset(TextInput4)
)
Best Regards,
Bof