I have a mysql table with phone numbers in it, but I can't control the type of data that goes into this field. It may be...
555-555-5555
(555)555-5555 ext 55
Not available at this time
555-555-5555 (don't call during the day)
...They aren't that extreme, but I can't just strip out the non-numeric characters before it gets into the database. (Yuck...I know)
Obviously, I am running into problems with searches. I just need to be able to allow people to search for 5555555555 and have it pull up any records with this number in it.
I have been experimenting with RLIKE/REGEXP, but can't seem to make it do what I want it to do. Any thoughts?