Use a regex to split the hxml file.

Allows skipping the "replace newlines with spaces" step, and ensures that there aren't any blank arguments.