You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2009/11/22 19:51:39 UTC

[jira] Updated: (XERCESJ-1389) RegEx matching: ranges not computed correctly in "ignore case" mode

     [ https://issues.apache.org/jira/browse/XERCESJ-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1389:
------------------------------------------

    Fix Version/s: 2.10.0

> RegEx matching: ranges not computed correctly in "ignore case" mode
> -------------------------------------------------------------------
>
>                 Key: XERCESJ-1389
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1389
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.9.1
>            Reporter: Radu Preotiuc-Pietro
>            Assignee: Khaled Noaman
>             Fix For: 2.10.0
>
>
> There are a couple of problems in interpreting character ranges in "case-insensitive" mode.
> When doing range subtraction (or negation), all the case-variants of the subtracted characters need to be considered. For example, "[^Q]" means, in case-insensitive mode, "any character except 'q' or 'Q'" but the regex engine matches both 'q' and 'Q' in this example.
> Also, in case-insensitive mode, all character classes must stay the same, so for example "\p{Lu}" would not match a lowercase letter, but the regex engine matches 'q'.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org