Overview
| Artifact ID: | 1d1bfdbf18f999259192e2acf4212de76ae06a31 |
|---|---|
| Ticket: | 3604074fffffffffffffffffffffffffffffffff
Inifinite loop when matching regular expression |
| User & Date: | bjorngrathwohl on 2013-02-11 11:04:01 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
When I perform a match with five or more nested kleene stars, like the regular expression (((((a)*)*)*)*)* on the input string "a", Tcl goes into an infinite loop. When there are four or fewer kleene-stars, it does not happen. If I change the expressions to use non-grouping parentheses, like (?:(?:(?:(?:(?:a)*)*)*)*)*, the problem disappears. % set exp "(((((a)*)*)*)*)*" (((((a)*)*)*)*)* % [regex $exp "a"] <LOOP>
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "bjorngrathwohl"
- subsystem changed to: "None"
- title changed to: "Inifinite loop when matching regular expression"
- type changed to: "Bug"