if not when; regex over 2 lines