Password is unique, using regular expression concept for this doesnt make sense
'Just use looping
'Just use looping
Code:
alphabets=array("a","b",......."z")
'8 for loops
'for single letter check eg:a,b...z
for i=0 to 25
pwd= alphabets(i)
'use this pwd and check if it is correct password, if yes,print it and ExitTest
'for 2 letters check eg:aa,ab....az
for j=0 to 25
pwd=alphabets(i)&alphabets(j)
'use this pwd and check if it is correct password, if yes,print it and ExitTest
next
'for 3 letters check eg:aaa...aaz,aba..abz.....azz
for j=0 to 25
for k=0 to 25
pwd=alphabets(i)&alphabets(j)&alphabets(k)
'use this pwd and check if it is correct password, if yes,print it and ExitTest
next
next
'for 4 letters check eg:aaaa........aaaz............azzz
for j=0 to 25
for k=0 to 25
for l=0 to 25
pwd=alphabets(i)&alphabets(j)&alphabets(k)&alphabets(l)
'use this pwd and check if it is correct password, if yes,print it and ExitTest
next
next
next
'
'
'
'Continue this pattern upto 8 letters
'
'
'
'
next