If you want to implement a more complex validation rule on SharePoint imput fields that SharePoint supports out of the box, you can easily implement regular expressions on the SharePoint NewForm or EditForm.