I'm trying to test using fn:replace in QConsole and I'm hitting a small snag but can't figure out where I'm going wrong.
When I run this query in QConsole: xquery version "1.0-ml"; let $url := "/search?q=test" return fn:replace($url, "^/search?q=$", "/v1/search?options=appl&q=") I get back the string in $url and not the replacement, I can't tell what I'm doing wrong. I'm using this query in the url rewrite section of one of our app servers and it works great: xquery version "1.0-ml"; let $url := xdmp:get-request-url() return fn:replace($url, "^/search$", "/login.xqy" This leaves me a bit stumped. Any help would be greatly appreciated. Thanks, Zach The information contained in this communication is intended for the use of the designated recipients named above. If the reader of this communication is not the intended recipient, you are hereby notified that you have received this communication in error, and that any review, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify The Associated Press immediately by telephone at +1-212-621-1898 and delete this email. Thank you. [IP_US_DISC] msk dccc60c6d2c3a6438f0cf467d9a4938
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
