Overview
| Artifact ID: | c55997993b3bbabbdc25f1cf520af94debb24716 |
|---|---|
| Ticket: | 218056ffffffffffffffffffffffffffffffffff
regexp won't parse particular expression |
| User & Date: | nobody on 2000-10-26 00:52:39 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1448 Bug Version: 8.0.4 SubmitDate: '1999-03-04' LastModified: '1999-08-04' Severity: LOW Status: Closed Submitter: pat ChangedBy: stanton OS: HP-UX OSVersion: B.10.20 Machine: Other FixedDate: '2000-10-25' ClosedDate: '1999-08-04' Name: David A. Schultz CVS: 18 Dec 1998, 13:00 Extensions: n/a CustomShell: none ReproducibleScript: regexp "^[ ]*#[ ]*include" " # include" results in "couldn't compile regular expression pattern: *+ operand...." However, in unix the grep -E used it just fine. regexp "^#[ ]*include" "# include" --> 0 regexp "(^#)[ ]*include" "# include" --> 1 Why are the paren's needed? ObservedBehavior: In 6 DesiredBehavior: I expect regexp "^[ ]*#[ ]*include" " # include" to yield 1. grep -E matches, so it is a valid reg exp, and it would appear that tcl mimics unix regexps. 08/04/1999 17:48 - stanton - The user has failed to quote the [] characters appropriately, so the brackets are being interpreted as a command substitution before the pattern is passed to regexp.
- foundin changed to: "obsolete: 8.0.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "43. Regexp"
- title changed to: "regexp won't parse particular expression"
- type changed to: "Bug"