fixes #1: fixed two huge bugs during processing: only the first regex would ever be applied, and regexes were imported incorrectly and would break horribly.