I need a regex that can accept all letters (A-Z which are case sensitive), numbers (0-9), spaces and most characters. The field must not accept accented characters (ÁÉÚÍÓ), tabs, or the following characters: backslash (), less than (<), greater than (>), tilde (~), equals (=), double quotes (”) or comma (,)
Any ideas on what sort of regex I would need for this?
Something like this should work:
^([A-Za-z0-9 ]+)$It will match
foo bar 1234 FOO BARbut notfoo bar 1234 FOO BAR ddorfoo bar 1234 FOO BAR\Note: You can then add the most characters within the square bracket.
Edit:
foo bar 1234 FOO BAR ddcontains a tab (\t) character but it is being shrunken down.