Changes made to the regex phrases code