To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=112046





------- Additional comments from j...@openoffice.org Thu Jun  3 15:36:36 +0000 
2010 -------
Nested quantifiers are something of a gray area in regular expressions. I'm not
sure there is any clear "right" or "wrong" in this case.

If you were trying to match "two or more alpha's", then you would normally use
something like your alternative pattern: [:alpha:][:alpha:]+
Or the equivalent: [:alpha:]{2,}  (Note the added comma).

When the {min,max} quantifier has no comma and no 'max' ("{2}"), it means
exactly "min" repetitions. When there is a "min" with a comma but no "max"
("{2,}"), it means "min or more" repetitions.

A search in Writer for "[:alpha:]{2,}" finds any span of two or more alpha
characters, as expected.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to