Hi, it may be already known, that the editor seems to hick up with the parsing, when it comes around some strange combinations of chars within the comment. I just came around this:
(: let $str := "http://foo.bar/barz/index.html?bla=2" let $str2 := "http://www.ics.uci.edu/pub/ietf/uri/#Related" let $str3 := "http://192.168.2.1/index.html?bla=2" let $scheme := substring-before($str, ':') let $host := analyze-string($str3,"^(([^:/?#]+):)(//([^/?#]*))([^?#]*)(\?([^#]*))(#(.*))?") return $host :) Editor/GUI warns, that: "no expression allowed in library module" and places error marker at the two slashes // after the :)( in the regex. -- Goody Bye, Minden jót, Mit freundlichen Grüßen, Andreas Mixich