[Users] regular expression
Alexandr Dubovikov
shurik at start4.info
Wed Nov 29 08:45:51 CET 2006
On Wed, Nov 29, 2006 at 12:58:44PM +0530, Jayesh Nambiar wrote:
> Hi all,
> Can someone please help me in formulating a regular expression. I have an expression like this:
> if(uri=~"^sip:1[0-9]*@)
> This matches numbers like 15552221212, but also matches number like 15552221212#.
>
> when i make it as:
> if(uri=~"^sip:1[0-9]@*)
not really, in this regexp your number can have only 2 digits and first one
should ne "1".
> Again this matches any special characters after the number.
>
> I just wanted a regular expression that will match only numbers and no alphabets or special characters.
> Can someone please help me to formulate a regular expression for this.
if(uri=~"^sip:1[0-9]+@*)
>
> Thanks in advance.
--
Alexandr Dubovikov * baron at iRC RusNet * mailto:shurik at start4.info
AD1-UANIC * ICQ: 122351182 * http://www.start4.info
More information about the Users
mailing list