Anagram Detection solution in Ruby, using RegEx