Simplifying mask regex