It's not light reading, but XQuery 1.0 uses the same definitions of
character classes as XML Schema does:

http://www.w3.org/TR/xmlschema-2/#charcter-classes

in particular for \d, \w, etc:

http://www.w3.org/TR/xmlschema-2/#nt-MultiCharEsc

On Mon, 27 Jul 2009, Paul M wrote:

> Does there exist a document similar to the ones that exist for Perl that show 
> the following:
> \d     matches any digit character, equiv. to [0-9]
> \D     matches any non-digit character
>
> I have been experimenting with
> "[^\w]", " ")
> and have found that given the following string:
> "!...@#$%^&*()_+-=aAzZ019"
> The following characters are considered word characters:
>   $ ^     + =aAzZ019
>
> I read the w3c docs regarding fn:replace and regular expression, but it did 
> not seem very helpful regarding special notations such as \s \D \w etc...
>
>
>
>
>

-- 
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: [email protected]   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to