[Home] [By Thread] [By Date] [Recent Entries]
Hi there,
I've got two regexp-related questions. 1) Is it correct that XSLT/XPath2's regular expressions do not support non-capturing groups (as shown in <http://www.exampledepot.com/egs/java.util.regex/NoGroup.html>)? 2) With respect to analyze-string, and the captured regex-groups: I'm using a regex like ([A-Z]+) = ([A-Z]+) ( ; ([A-Z]+) = ([A-Z]+) )* for matching things like a=b;c=d;e=f Works fine, but the regex-group function only returns values for the last match, so, with the example above, I can capture a=b (because it's a non-repeating part) and e=f I've worked around this by using recursion, feeding the "remainder" into another template. Is there a simpler way to achieve this? Best regards, Julian
|

Cart



