Regular Expression validation patterns are the most comprehensive way to enforce complex patterns. I'd work with one field at a time. There are regular expression libraries you can look up online to find an expression that will work for you, or I can help if you can tell me specifically what you do or don't want to accept.