I'm trying to create a regular expression to redact phone numbers. I'm currently using the following:
\(?(\d{3})\)?-?(\d{3})-(\d{4})|(\d{3})-(\d{4})|(\d{3}).(\d{4})
but the problem is we have parcel numbers formated as 999-9999-9999-99 and the expression is redacting the first half of the parcel number as well as numbers formated as credit card numbers.
Can anyone help me exclude numbers formated as 999-9999-9999-99.
Thanks bunches!!
Nettie