I've been scratching my head about this for two days now......
Basically, I'm trying to write something that will test every single possible itteration of every single character in an array.
My idea is to have an array of my possible "choice" of characters, so it would have a value something like:
("a","b","c","d","e",..."z","A","B",...."Z")
And I have a string that I need to match it up to.
So basically I want to loop until myTestString = stringToMatch
And, theoretically, if you did a printout of "myTestString" for every test, it should look something like this:
a
b
c
d
e
f
g
...
z
A
B
...
Z
aa
ab
ac
ad
...
aZ
ba
bb
bc
...
...
ZZ
aaa
aab
aac
............
ZZZ
aaaa
aaab
aaac
............
ZZZZ
.........................
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaab
aaaaaaaaaaaaaaac
aaaaaaaaaaaaaaad
..........................
ZZZZZZZZZZZZZZZY
ZZZZZZZZZZZZZZZZ
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaab
aaaaaaaaaaaaaaaac
.....
and just keep going and going and going and going and going ... until it finds a case-sensitive match!
I've tried a few different ways of nesting loops together but I can't quite get the logic down.
Anyone have any ideas or an easy method to do this?
Thanks for any advice...
Basically, I'm trying to write something that will test every single possible itteration of every single character in an array.
My idea is to have an array of my possible "choice" of characters, so it would have a value something like:
("a","b","c","d","e",..."z","A","B",...."Z")
And I have a string that I need to match it up to.
So basically I want to loop until myTestString = stringToMatch
And, theoretically, if you did a printout of "myTestString" for every test, it should look something like this:
a
b
c
d
e
f
g
...
z
A
B
...
Z
aa
ab
ac
ad
...
aZ
ba
bb
bc
...
...
ZZ
aaa
aab
aac
............
ZZZ
aaaa
aaab
aaac
............
ZZZZ
.........................
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaab
aaaaaaaaaaaaaaac
aaaaaaaaaaaaaaad
..........................
ZZZZZZZZZZZZZZZY
ZZZZZZZZZZZZZZZZ
aaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaab
aaaaaaaaaaaaaaaac
.....
and just keep going and going and going and going and going ... until it finds a case-sensitive match!
I've tried a few different ways of nesting loops together but I can't quite get the logic down.
Anyone have any ideas or an easy method to do this?
Thanks for any advice...