Overview
| Artifact ID: | ca87afa6730e850e5e031f9ac9c603160f91bd87 |
|---|---|
| Ticket: | 2826551fffffffffffffffffffffffffffffffff
Line-sensitivity at -start, but also -all |
| User & Date: | jkock on 2009-10-16 05:25:56 |
Changes
- icomment:
Here is another description of the bug, and a contrast: In regexp with the -all option, it is clear that the matches must not overlap. But how is the rule if the expression starts with a constraint (width zero), like for example ^ or \m ? To my surprise you cannot find a linestart after a matched \n: % regexp -all -inline -indices {(?n)^a\n} "a\na\na\n" {0 1} {4 5} The behaviour I expected is the one seen with \m instead of ^: you _can_ find a wordstart after a matched \n: % regexp -all -inline -indices {(?n)\ma\n} "a\na\na\n" {0 1} {2 3} {4 5} So somehow the regexp engine is allowed to look back to see that a \n preceded and hence constitutes a word boundary, but it is not allowed to look back and detect that this same \n also constitutes a line boundary... - login: "jkock"
- mimetype: "text/plain"
- username: "jkock"