Thursday, January 9, 2014

Just used a cool regexp trick in Ruby

consonant  =-> (ch) { /\A[a-z&&[^aeiou]]\z/ =~ ch }

No comments:

Post a Comment