Changed batchprocessor regex matching to not rely on python2.7 feature.