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
>
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to