Anonymous | Login | 03-02-2021 23:55 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0005391 | [Squeak Packages] VBRegex | minor | always | 11-09-06 14:54 | 01-06-07 04:08 | |||||||
Reporter | anselm | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | |||||||||||
Summary | 0005391: Not commutative | |||||||||||
Description |
Certain regular expressions are not commutative: '15' matchesRegex: '[1-9]|1[0-9]'. false '15' matchesRegex: '1[0-9]|[1-9]'. true Seems that in the first case evaluation stops at the first expression before the '|'. Evaluation with a single character works: '1' matchesRegex: '[1-9]|1[0-9]'. true '1' matchesRegex: '1[0-9]|[1-9]'. true |
|||||||||||
Additional Information |
Brackets don't make any difference: '15' matchesRegex: '([1-9])|(1[0-9])'. false '15' matchesRegex: '(1[0-9])|([1-9])'. true '1' matchesRegex: '([1-9])|(1[0-9])'. true '1' matchesRegex: '(1[0-9])|([1-9])'. true |
|||||||||||
Attached Files | ||||||||||||
|
![]() |
|||
Date Modified | Username | Field | Change |
11-09-06 14:54 | anselm | New Issue | |
01-06-07 04:08 | nicolas cellier | Note Added: 0008842 |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
32 total queries executed. 27 unique queries executed. |