rename regexp to matches and array contains to has