I wish to write a regex that will match strings with numbers.
I have the following regular expression which kind of works:
[a-z0-9]*([a-z]+[0-9]+)+[a-z0-9]*
results:
abc1234aa121aaa //Matches
abc123 //Matches
12abc123sd12 //Matches
abcaaaaaa //Does not match
ab12b12b12b2321b3 //Matches
ab12b12b12b2321b //Matches
1abc1234aa121aaa //Matches
v2 //Matches
but it doesn't work if I wanted to match strings with length 5 or greater
([a-z0-9]*([a-z]+[0-9]+)+[a-z0-9]*){5,}