Triples Regex improvement