I have phone number list on our PhoneNos table
ID | PhoneNo
1 | +61 2 9666 8000
We try to search this phone no into our Content table (ie. desc field)
The challenge is actualy:
The desc field is a text and the input can be any thing such as:
ContentID | Desc
1 | bla bla ... +61 (02) 9666 8000 ... bla bla
2 | bla bla ... +61-2-9666-8000 bla bla
3 | bla bla ... +61 2 96668000 bla bla
4 | bla bla ... +61296668000 00116129668000 bla bla
or could be anything arranging from extra spacing such as
5 | bla bla ... +61 (02) 9666 8000 ... bla bla
6 | bla bla ... +61-2 9662 0382 ... bla bla
That's an Australia phone number BUT again it could be USA or any other countries SO it's not tight with 1 particular country.
This phone no have no pattern what so ever before and after this phone no. So it could be anything.
Is there anyway to handle this sort of thing easily? I can probably construct each condition above BUT I'm just wondering if there is a better solution.