Calculate an input string and display the most frequently character and last frequently character. Pick the lowest code points if there is a tie.
ruby 1.9.2
$ gem install char_counter --source https://github.com/sfchao/char_counter.git
char_counter yourstring
- Case sensitive
- Only accept [a-zA-Z]\d