add regex config and initial regex handling