xsl-list
[Top] [All Lists]

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

2014-04-07 11:50:08
On 07/04/2014 17:35, Ihe Onwuka wrote:
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

It isn't (and can't) mean a character that _you_ consider a word, since
it's not a user (or even locale) dependent expression. So it has to mean
what someone considered (very loosely) to be a "word". Including spacing
accents in that list doesn't seem unreasonable.


So it's TS if backtick isn't a word character in your vocabulary.

No just that if you are writing vocabulary specific regex you need to
use vocabulary specific regex terms. If I'm looking for words in English
I tend to use [a-z] even if some people try to sneak accents into cafe
or naive :-)

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