I have a form that people must fill in. There has to be checks if the person filled in the form correctly. Now I need 2 type of checks but I have no clue how to accomplish this. I looked up regular expressions but I only get errors (deprecated??) and I am stuck on tutorials. What I need should be easy enough.
1) string may only contain letters and dots
2) string may only contain letters, dashes - and '
Who can help me?