simplify this using regex?

Printable View