Summary: | Don't parse the valid QRegExp " a(|b)c" | ||
---|---|---|---|
Product: | [Applications] kregexpeditor | Reporter: | Pascal Létourneau <pascal.letourneau> |
Component: | general | Assignee: | Jesper Pedersen <blackie> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Pascal Létourneau
2003-09-09 18:17:14 UTC
Subject: Re: New: Don't parse the valid QRegExp " a(|b)c" Which syntax are you referring to? In Qt's syntax which is the default from within KDE application, the following is actually a invalid syntax. a(x|b)c would be a valid one a(\|b)c would also be valid but not the one you write. Pascal "L It is a valid regexp in Qt, python, perl, ... Just try it! Thanks, you were right. This is valid syntax, and have now been fixed on HEAD. There is still a small problem with the graph for "a(|b)c". It shows only one alternative: "b". It should show two: "" and "b". Regular expression are not quite simple are they. Until just now, I didn't understand why you were that interested in that sily regexp. I though it was equal to a(b)c, which it of course isn't. Now empty lineedit are created. Thanks for bugging me till I finally understood. Jesper. Thanks! |