added some regex builder stuff to match up with xkcd 1313