title: how to include both digits with hyphens in javascript pattern
body: <p>how to include both digits and hyphens in <code>javascript</code> pattern. Like in phone number where user can add both digits and hyphens. No matter where is the hyphen.</p>