Use regular expressions for input splitting.

Allows the user-supplied map, X, and Y values to be given much more flexibly.