You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Akmal Sarhan <ak...@hotmail.com> on 2002/09/27 17:32:47 UTC

Re: Intake: check phone syntax

Expression:  ^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
Description:   A regular expression to match phone numbers, allowing for an 
international dialing code at the start and hyphenation and spaces that are 
sometimes entered.
Matches:  [(+44)(0)20-12341234], [02012341234], [+44 (0) 1234-1234]
Non-Matches:  [(44+)020-12341234], [12341234(+020)]


regards
Akmal


>From: David Worms <da...@simpledesign.com>
>Reply-To: "Turbine Users List" <tu...@jakarta.apache.org>
>To: Turbine Users List <tu...@jakarta.apache.org>
>Subject: Intake: check phone syntax Date: Thu, 26 Sep 2002 18:04:22 -0700
>
>Does anyone has a regexp in its intake.xml, checking a phone number that I
>could use in my intake? eg:
>
><rule name="mask" value="[check phone syntax]">
>
>Thanks in advance
>
>David Worms
>
>
>--
>To unsubscribe, e-mail:   
><ma...@jakarta.apache.org>
>For additional commands, e-mail: 
><ma...@jakarta.apache.org>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>