in reply to Re: Composing regex's dynamically
in thread Composing regex's dynamically
But I see the general point: Given $r1 and maybe $r2 as compiled regexs, I could say $r= qr/$r1|$r2/ Or if absent say $r=$r1;.
I'm finding that I'm limited in how I break up a huge regex into separate pieces. Pieces can contain named captures and MARK:names, and the assembled result works the same as if it were written as one big string. But a named recursive reference (?&name) must be present when the regex is compiled, not (just) when it is used later.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Composing regex's dynamically
by Corion (Patriarch) on Apr 27, 2011 at 13:52 UTC | |
by John M. Dlugosz (Monsignor) on Apr 27, 2011 at 15:41 UTC | |
by Corion (Patriarch) on Apr 27, 2011 at 16:05 UTC | |
by John M. Dlugosz (Monsignor) on Apr 28, 2011 at 08:15 UTC | |
by Corion (Patriarch) on Apr 28, 2011 at 08:17 UTC | |
|