Regexes can be tricky, I know. It's important to remember that the statement must include delimiters to work, that's the most common mistake. You could try something like this for your phone number:
to strictly force your format. Be sure to tell your users what you're expecting, the help field is good for that. The delimiter, if you don't know, is the first and last character of the regex and should be something that is not in the regex statement itself, as in the example above.
Your second example is slightly more tricky...you could try: