Overview
| Artifact ID: | 9955c485fa6141b0a0f91899a37a8954c115a6da |
|---|---|
| Ticket: | 2798939fffffffffffffffffffffffffffffffff
Non-greedy quantifiers revert to greedy when branched |
| User & Date: | bilgexa on 2009-05-30 21:15:37 |
Changes
- assignee changed to: "pvgoran"
- cmimetype changed to: "text/plain"
- comment changed to:
Non-greedy quantifiers revert to greedy when used in conjunction with branches (pipe character). The following branch-free expression matches each letter in the test string and therefore correctly returns 14 regexp -all .+? {this is a test} The following branched expression matches the entire string only once because the quantifier reverts to greedy and therefore incorrectly returns 1 regexp -all .+?|x {this is a test} This breaks a lot of complex regular expressions that require non-greedy quantifiers and branches. - foundin changed to: "obsolete: 8.5.7"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "bilgexa"
- subsystem changed to: "43. Regexp"
- title changed to:
Non-greedy quantifiers revert to greedy when branched
- type changed to: "Bug"