page expression "splitter"

This seems to basically work, although I'm not entirely satisfied with it.  It could probably also use some additional test cases.