How to validate any field with regex (regular expression)?