Hi,

Lookahead and Lookbehind regular expressions are not supported in xquery.
I tried to to implement the following regular expression using xquery. I am 
getting the error "Invalid regular expression"

let $s := "University of California"
let $s1 := fn:replace($s, '(?>(?<=U)niv(?>ersit\w*)', 'Univ' )
return $s1

and similarly how to implement the following regex

(?!X)
(?<!X)
(?>X)
(?<=X)

Is there any other way to attain this Lookahead and Lookbehind regular 
expressions?
Thanks in advance

Regards,
Mano


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to