<td><div class='wide right'>Daytime Phone</div></td>
<td>
<div class='wide left'>
- <input class='pad' type='text' id='ue_day_phone' maxlength='12' size='12'/>
- <span style='font-size: 8pt;'>(123-456-7890)</span>
+ <input class='pad' type='text' id='ue_day_phone' size='18'/>
+ <span style='font-size: 9pt;'> Example: 123-456-7890 or 123-456-7890 ex123</span>
</div>
</td>
</tr>
<td><div class='wide right'>Evening Phone</div></td>
<td>
<div class='wide left'>
- <input class='pad' type='text' id='ue_night_phone' maxlength='12' size='12'/>
+ <input class='pad' type='text' id='ue_night_phone' size='18'/>
</div>
</td>
</tr>
<td><div class='wide right'>Other/Cell Phone</div></td>
<td>
<div class='wide left'>
- <input class='pad' type='text' id='ue_other_phone' maxlength='12' size='12'/>
+ <input class='pad' type='text' id='ue_other_phone' size='18'/>
</div>
</td>
</tr>
const wordRegex = /^\w+$/;
const ssnRegex = /^\d{3}-\d{2}-\d{4}$/;
const dlRegex = /^[a-zA-Z]{2}-\w+/; /* driver's license */
-const phoneRegex = /\d{3}-\d{3}-\d{4}/;
+const phoneRegex = /^\d{3}-\d{3}-\d{4}(| ex\d+)$/i;
const nonumRegex = /^[a-zA-Z]\D*$/; /* no numbers, no beginning whitespace */
const dateRegex = /^\d{4}-\d{2}-\d{2}/;
const zipRegex = /^\d{5}(-\d{4}|$)/; /* 12345 or 12345-6789 */