Tema: Re: Regex validation
Autorius: GP
Data: 2010-08-13 10:10:40
turetu tikti sitaip /^\+?(\d+\-?\/?\d*){2,20}$/

On 08/12/10 17:03, Bamba wrote:
> Sveiki,
> 
> ar yra cia kas su regular expression dirbes?
> 
> Reikia parasyti tel nr patikrinima
> 
> •    2 – 20 digits
> •    Only one instance of “+”, and the “+” (if exists) must be the first
> character
> •    Only one instance of “-”, and if exists it must not be the first
> character
> •    Only one instance of “/”and if exists it must not be the first
> character
> •    No other characters allowed
> 
> Niekaip nepvyksta sukurpti.
> 
> Dekui
> 

-- 
GP