Start to add regexp support for segments. It compiles. (badpokerface)