How to give range in lookhead using regex e.g ^(?=(.*[a-z]){1,3})(?=.*[0-9]).{2,5}$
Clash Royale CLAN TAG #URR8PPP How to give range in lookhead using regex e.g ^(?=(.*[a-z]){1,3})(?=.*[0-9]).{2,5}$ Question- 1]String length is 2 to 5 2]String contains at least 1 char and maximum 3 char 3]Atleast one number I want do using lookhead. What i tried but not working ^(?=(. [a-z]){1,3})(?=. [0-9]).{2,5}$ ^(?=(.*[a-z]){1,3})(?=.*[0-9]).{2,5}$ – user3890872 16 mins ago Sorry, that was me being practically blind... ;-) – Yunnosch 13 mins ago Might you have an example input set? – CertainPerformance 5 mins ago ...