On 1 Sep 2009, at 15:58, Dominic Mitchell wrote:
On 1 Sep 2009, at 15:40, Lech Rzedzicki wrote:
Just use '\sthe\s' instead (\s stands for whitespace elments, in
this case space, IIRC - I've never used \b, to be honest).
But that won't match "the thing" because it's at the beginning of a
string. You need \b — or it's equivalent.
Looking at <http://www.w3.org/TR/xpath-functions/#regex-syntax> and
<http://www.w3.org/TR/xmlschema-2/#regexs>, I can't actually see
either of the usual choices (\b, or \< & \>). However, when I try it
in CQ, they appear to work. I can't quite see where this is
documented…
fn:replace('organize the annual get-together', '\<the\>', " ")
=> organize annual get-together
FWIW, I just tried this in eXist and the \b works while the \< and \>
do not.
Fun, fun fun!
-Dom
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general