in reply to Re^7: Reusing a complex regexp in multiple spots, escaping the regexp
in thread Reusing a complex regexp in multiple spots, escaping the regexp
Pretty sure they're not kept as nested objects. I believe when the larger regexp is being compiled, any nested regexps are simply stringified and interpolated into it.
In the original post that could be a problem as the regexp would need to be compiled each time around the while loop. As long as you're compiling it outside the loop, I don't see it being much of an issue.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Reusing a complex regexp in multiple spots, escaping the regexp
by LanX (Saint) on Apr 16, 2026 at 14:39 UTC | |
by tobyink (Canon) on Apr 16, 2026 at 15:05 UTC | |
by LanX (Saint) on Apr 16, 2026 at 17:01 UTC | |
by tobyink (Canon) on Apr 17, 2026 at 08:15 UTC | |
by sleet (Pilgrim) on Apr 17, 2026 at 10:02 UTC | |
| |
by LanX (Saint) on Apr 17, 2026 at 11:36 UTC | |
|