Expand description
Trailing regex lookaround assertions in format type tails (issue #9 / parse#209).
Functions§
- parse_
lookaround_ tail - Parse
tailinto concatenated lookbehind and lookahead fragments (order preserved). Each segment must be a single non-capturing lookaround group with no capturing groups inside. - reject_
lookaround_ in_ strftime - If
type_stris a strftime tail (%…but not exactly%), reject when lookarounds are present. - rewrite_
field_ fragments_ for_ engine_ anchor - fancy-regex 0.14 does not match some anchored patterns that combine
^/$with positive lookbehind at the start or positive lookahead before the end anchor. For literal-only bodies, rewrite those assertions to non-capturing groups so spans stay on the field capture and full-string parse still works. - split_
type_ base_ and_ lookaround_ tail - Split
type_strinto the type token(s) and any trailing(?=…)/(?!…)/(?<=…)/(?<!…).