(a(?1)?x) [download]
In reply to Re^3: interpolating code in regex brace quantifier by ikegami in thread interpolating code in regex brace quantifier by grobber