Re: Pattern Matching

david@works:~\$ ./a.out
0 A
1 B
1 B
0 A
2 C
3 AB
A
B
C
AB
BB
BA
AC
CA
ABA
david@works:~\$