regex is terrible for this