Subject: Re: [xsl] Implementation Advice: Grouping Strings by Character Range in XSLT 2 From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 29 Apr 2016 19:29:56 -0000 |
I have my generated analyze-text approach working generally. However, some of my regular expressions are not matching when I would expect them to.
For example, given this @regex value:
regex="'([©®℠™]+)|([¦²³¹¼& #xbd;¾Ð×ÝÞðýþŠš∂ ∏∑−∫≠≤≥]+)|([➤]+)'"
And this text:
"©®"
The regular expression does not match, even though the first group clearly matches on \uA9 and \uAE.
Have I made a stupid syntax mistake in my regular expression? Is there some subtlety to matching groups that makes XSLT different from what Oxygen is doing? I can't see any obvious syntax error in the regular expression.
The problem is the single quote you have wrapped the regular expression into, the regex attribute is not an XPath expression, if you wanted that you would need to use an attribute value template. So I suppose you simply want
regex="([©®℠™]+)|([¦²³¹¼& #xbd;¾Ð×ÝÞðýþŠš∂ ∏∑−∫≠≤≥]+)|([➤]+)"
--- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr|ft. https://www.avast.com/antivirus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Implementation Advice: Gr, Eliot Kimber ekimber | Thread | Re: [xsl] Implementation Advice: Gr, G. Ken Holman g.ken. |
Re: [xsl] Implementation Advice: Gr, Eliot Kimber ekimber | Date | Re: [xsl] Implementation Advice: Gr, G. Ken Holman g.ken. |
Month |