Oh most wise Perl monks, I have a regular expression question.
Simply put, I want to match a phone number, IF it has a certain area code (800) AND a certain prefix (555), but NOT if it has a certain suffix (9999).
I.e., 800-555-nnnn should match unless 'nnnn' equals '9999'. Is there a way to do that in a single expression?
Many thanks,2006-03-16 Retitled by planetscape, as per Monastery guidelines
Original title: 'Regular expression question'
In reply to Phone Number Regular Expression by lev36
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |