Re: Telephone number type

On Tue, 12 Sep 2017 12:28:03 +0200, Steven Pemberton  
<steven.pemberton@cwi.nl> wrote:

>> That produces this monstrosity:
>>
>>    <pattern value="^\ *\+?([0-9]\ *(\-\ *[0-9]\ *)?)+(\(([0-9]\ *(\-\  
>> *[0-9]\ *)?)+\)\ *([0-9]\ *(\-\ *[0-9]\ *)?)+)?\ *$"/>
>
> Correction:
>    <pattern value="^\ *\+?\ *([0-9]\ *(\-\ *[0-9]\ *)?)+(\(\ *([0-9]\  
> *(\-\ *[0-9]\ *)?)+\)\ *([0-9]\ *(\-\ *[0-9]\ *)?)+)?\ *$"/>

Correction:
    <pattern value="^\ *(\+?\ *([0-9]\ *(\-\ *[0-9]\ *)?)+(\(\ *([0-9]\  
*(\-\ *[0-9]\ *)?)+\)\ *([0-9]\ *(\-\ *[0-9]\ *)?)+)?)|(\(\ *([0-9]\ *(\-\  
*[0-9]\ *)?)+\)\ *([0-9]\ *(\-\ *[0-9]\ *)?)+)\ *$"/>

Steven

Received on Tuesday, 12 September 2017 15:07:14 UTC