Generated regex capture factored expression