|
2000-10-26
| ||
| 08:13 | • Closed ticket [218056ffff]: regexp won't parse particular expression plu... artifact: bd8f0e4a99 user: welch | |
| 00:52 | • New ticket [218056ffff]. artifact: c55997993b user: nobody | |
regexp won't parse particular expression
Closed / Fixed218056ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:39
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.
welch Closed ticket [218056ffff].
[History diff]2000-10-26 08:13:44
Log in (anonymous is fine) to add a comment.