Regular expressions and data validation