in reply to Re: interpolating code in regex brace quantifier
in thread interpolating code in regex brace quantifier

This does it, thank you! And yes, I misspoke: it wasn't quite "interpolation" I was after..
  • Comment on Re^2: interpolating code in regex brace quantifier

Replies are listed 'Best First'.
Re^3: interpolating code in regex brace quantifier
by ikegami (Patriarch) on Mar 09, 2019 at 22:18 UTC
    Note that you can also achieve the desired result through recursion
    (a(?1)?x)