When regex is not enough...