pent icon indicating copy to clipboard operation
pent copied to clipboard

Convert head/body/tail to @properties with .setter()

Open bskinn opened this issue 7 years ago • 1 comments

Since the regex is deterministic from the patterns/Patterns, it might as well be compiled once, at whatever time the properties are set.

Can then return the string or pattern object from the property, from a private var, and the generated regex pattern strings could also be stored in various ways, internally.

bskinn avatar Sep 20 '18 11:09 bskinn

However: Since the regex pattern compilation at this point has two flags that change the capture-group insertion behavior, pre-compilation of the patterns may be more convoluted than would be useful.

bskinn avatar Oct 05 '18 04:10 bskinn