xsl-list
[Top] [All Lists]

Re: [xsl] Re: backticks in regex - tales of the unexpected part II

2014-04-07 11:36:00
Just going by the definition of the \w class in MK's XPath 2.0
reference - \w -> a character considered to form part of a word

So it's TS if backtick isn't a word character in your vocabulary.
Probably neither the first or the last to get caught by that one.

On Mon, Apr 7, 2014 at 5:21 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
On 07/04/2014 17:09, Ihe Onwuka wrote:

to put that another way why is a backtick (matches \w) deemed more
wordy than a quote which doesn't match \w.



You cross posted to the wrong lists really, regex syntax is as defined
by schema, not by xsl or xquery, and that defines \w as

[#x0000-#x10FFFF]-[\p{P}\p{Z}\p{C}] (all characters except the set of
"punctuation", "separator" and "other" characters)


By backtick I assume you mean U+0060 [`] which isn't a quotation mark,
it's a grave accent and has unicode class Sk so isn't punctuation,
separator or other. (Sk is "symbols")

David


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--