Home > Mobile >  Simplify this repeating regex
Simplify this repeating regex

Time:11-24

I have the following valid regex to match various excel cell/range patterns, of the form A1, A1:Z12, etc.

enter image description here

  • enter image description here

    And a better approach would be to use ?1 to recurse to the first pattern:

    Note however with this approach we do need the extraneous capturing group at the beginning for this technique to work.

  • Related