Simplifying regex