ChrisB: RegExp {min,max} Zeichen?

Beitrag lesen

Hi,

var strReg = "^([0-9]{1,2})+.+$";


> >   
>   
> > Du willst: String-Anfang, gefolgt von ein bis zwei Ziffern, gefolgt von einem Punkt, gefolgt von ein bis zwei Ziffern, gefolgt vom String-Ende.  
>   
> wieso ich hab doch mit ^([0-9]{1,2}) mindestens eine Ziffer jedoch maximal 2 oder ?  
  
Und wie oft hast du das …?  
  
MfG ChrisB  
  

-- 
Autocomplete has spoiled me to a point where it happens every so often that I encounter a CAPTCHA, and I just type in the first character … and then wait for the rest of the code to be automatically suggested :/