Use inline option switching for simpler regex