¡@

Home 

java Programming Glossary: aaab

Given a length and a set of characters, how to get all the possible string combinations [duplicate]

http://stackoverflow.com/questions/12288836/given-a-length-and-a-set-of-characters-how-to-get-all-the-possible-string-combi

above the result should have 2^4 16 strings which is aaaa aaab aabb abbb baaa baab babb bbbb bbaa bbab bbba abaa abab abba.. counting from aaaa to bbbb like binary. aaaa 0000 aaab 0001 aaba 0010 aabb 0011 ... bbbb 1111 Without seeing what you've.. would be counting up in what's essentially octal aaaa 0000 aaab 0001 ... aaah 0007 aaba 0010 ... hhhh 7777 It's the same way..

How can we match a^n b^n with Java regex?

http://stackoverflow.com/questions/3644266/how-can-we-match-an-bn-with-java-regex

of b 's. Examples of strings in this language are ab aabb aaabbb . This language can be show to be non regular by the pumping.. with e.g. String.matches to match strings like ab aabb aaabbb etc References perlfaq6 Can I use Perl regular expressions.. print test isMatch groupsJoined n tests array 'aaa' 'aaab' 'aaaxb' 'xaaab' 'b' 'abbb' r1 ' ^a b ' # ”â € € € # lookahead..