My CTO often severs the Gordian Knot of regex with judicious application of split(). Mad respect.