Regex help
Go to solution
Solved by Blade of Grass,
^[ -~]+$
Will match all printable ASCII characters.
Edit: thought I'd explain how this works, it starts at the space character and accepts any character (on the ascii table) between that and the tilde (last printable character). This encompasses all letters, numbers, and standard special characters.
Have you considered changing your database character set to allow all character though? That might be a better option.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now