\b and \B are not recognized as word boundary delimiters in the XPath 2.0 implementation of regular expressions, thus the error message. They are disallowed constructs.
On Tue, 1 Sep 2009, 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). > Lech > > On Tue, Sep 1, 2009 at 2:59 PM, judie pearline <[email protected]> wrote: > > > Hi, > > In Marklogic when i tried to use regular expression \b (word boundary) in > > replace function, its throwing an exception saying that "Invalid regular > > expression". > > > > Code - fn:replace('organize *the* annual get-toge*the*r','\bthe\b'," ") > > > > The main purpose is to replace the word "*the*" with an empty string. But > > the string "the" in the word toge*the*r should not get replaced. > > > > Please help me on this. > > Thanks, > > Judie > > > > ------------------------------ > > Love Cricket? Check out live scores, photos, video highlights and more. > > Click > > here <http://in.rd.yahoo.com/tagline_cricket_2/*http://cricket.yahoo.com>. > > _______________________________________________ > > General mailing list > > [email protected] > > http://xqzone.com/mailman/listinfo/general > > > > > -- 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
