simplifying n-grams using regular expressions

.