09-22-2010 01:38 PM
I'm using the ActiveRichTextField to display contact informations including postal address, telephone and telefax numbers, etc.
My phone numbers have the scheme +49 555 12 34 56 - 000, consisting of the international prefix, 3 (upto 5) for the area code, a "grouped for readability" phone number and the direct access number.
I didn't find any format description for phone numbers which is used by the ActiveRichTextField, so I did some experimentation... But the results are looking very inconsistent to me...
I tried this:
So, my questions are:
Does anybody know how this pattern matcher actually works?
Did I miss something, is it possible to have a formatted number that is entirely recognized as a phone number?
Or is it just usable for north-american phone numbers and I have to provide my own pattern matcher etc. for the rest of the world?
I'm currently using version 4.5 as target device software - in case this something that is "special" for specific versions...
09-22-2010 07:35 PM
There's a whole bunch of patterns defined by RIM to use for matching phone numbers in ActiveTextFields. I don't remember seeing the complete list of formats, but RIM has tried to accommodate as many formats as possible including international numbers. There's even a way to define your own patterns and handlers for your formats.
I wonder perhaps if you're encountering a bug.