Add fn for doing regex fallback processing