case-statement regex