title: How to check if a string contains a specific format
body: <p>I am trying to see if the string contains a specific format. For example if someone types a phone number 1234567890 I need to force a person to enter a phone number in a specific format. 
  (###) ###-####. I am make changes to a vended program where the design of the program is terrible where you cannot force the formatting within a form. So, I was wondering if there is a way to use string.contains("(###) ###-####") or any other help would be greatly appreciated. </p>