-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
- lookahead -
foo <?after bar>matchesfooinfoobar - negative lookahead -
foo <!after bar>matchesfooinfoobaz - lookbehind -
<?before foo> barmatchesbarinfoobar - negative lookbehind -
<!before foo> barmatchesbarinsushibar
An example with both: <?before foo> bar <?after baz> matches bar in foobarbaz
This is different from Perl 6 as noted in perl_changes and is subject to change. I'll need to get experience using it and then compare. Perl 6 may have gotten it correct but I'm not sure or convinced. Granted, I don't think deviating from Perl 6 shouldn't be taken lightly.
I have a PR for this but it doesn't work correctly and I have to do a major revision. Not sure when I'll get to it.
Metadata
Metadata
Assignees
Labels
No labels