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/07/31 13:04:15 UTC

[jira] Issue Comment Edited: (XERCESJ-1388) RegEx matching: when computing backreferences, "\dd" must match group "dd" if group exists

    [ https://issues.apache.org/jira/browse/XERCESJ-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737493#action_12737493 ] 

Michael Glavassevich edited comment on XERCESJ-1388 at 7/31/09 4:02 AM:
------------------------------------------------------------------------

Radu, what code are you referring to? Xerces 2.9.1 doesn' t even have support for multi-digit back references. Its documented regex grammar only recognizes: "\1 \2 \3 \4 \5 \6 \7 \8 \9" so this isn't really a bug. Quite coincidentally, Khaled implemented support for multi-digit back references yesterday on the trunk, but I can't imagine you're already using that (unreleased) code.

      was (Author: mrglavas@ca.ibm.com):
    Radu, what code are you referring to? Xerces 2.9.1 doesn' t even have support for multi-digit back references. Its documented regex grammar only recognizes: "\1 \2 \3 \4 \5 \6 \7 \8 \9" so this isn't really a bug. Quite coincidentally, Khaled implemented support for multi-digit back references yesterday, but I can't imagine you're already using that code.
  
> RegEx matching: when computing backreferences, "\dd" must match group "dd" if group exists
> ------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1388
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1388
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 2.9.1
>            Reporter: Radu Preotiuc-Pietro
>
> When dealing with back-references to groups >= 10, "\" followed by more than one digit must match the largest number, smaller than the total number of groups, that can be constructed by dropping digits from the right.
> So,  for instance, \11 must match the 11th capturing group of the expression "^ (#)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)\11", because there are 11 capturing groups; it must not match the first capturing group ant then the digit "1".

-- 
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