javascript - Cannot construct regex -


i trying build regex expression validation. want check if string combination of atleast 1 alphabet , 1 integer. have tried ^(?=.*[\w][\d]).+ don't understand regex much. expression checks both aplhabet , number in string wants string have alphabet @ start. instead want check if both alphabet , number present in string irrespective of number , order of occurence. alphabet can both capital or small guess word checking case insensitive. string might contain special characters along word , digit in combination , order space should discarded. can help?

you'll have use 2 lookaheads:

/(?=.*[a-z])(?=.*[0-9])/i 

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -