You can add a constraint to the field. An example that esri gives is setting the constraint column to the following for phone numbers:
string-length(.)>=8 and string-length(.)<=12
You can also use a regex expression. Here's the suggestion from esri for emails for example (it won't let me paste it directly here so here's a screenshot):