> The regular expression capability I was missing was the word boundary \b > matching. I followed the Java bindings example so I can now use the Java > String.matches() function which allows me to use the \b match (and others > too) which are not part of the standard regex capability. This performs very > well, so I think you can hold off adding another extension.
Sounds fine. By the way, if you wish \b to be included in a future version of XQuery, you are invited to post a feature request on the W3 Bugzilla list [1]. [1] https://www.w3.org/Bugs/Public/query.cgi > ________________________________ > From: Christian Grün <christian.gr...@gmail.com> > > To: The Trainspotter <wy...@btinternet.com> > Cc: "basex-talk@mailman.uni-konstanz.de" > <basex-talk@mailman.uni-konstanz.de> > Sent: Sunday, 21 October 2012, 18:23 > > Subject: Re: [basex-talk] Using full Java regular expressions > > Hi Gary, > > BaseX provides the full XQuery 3.0 regular expression syntax [1,2]; > maybe it already contains the features you need for your queries? If > not, could you give us a hint which ones you are missing? > > While we could add an additional flag to the regex evaluator in BaseX, > we are generally hesitant to do so, because it would be yet another > vendor (i.e., Saxon and BaseX)-specific extension. > > Best, > Christian > > [1] http://www.w3.org/TR/xpath-functions-30/#regex-syntax > [2] http://www.w3.org/TR/xmlschema-2/#regexs > ___________________________ > >> I'm currently converting my project to use BaseX instead of Saxon. One >> thing >> you can do in Saxon is provide a flag (an exclamation mark) to your >> regular >> expression to tell the matches function to use the Java regular expression >> processor, rather than the rather cut down expressions available in the >> XQuery spec. >> >> Is there anything similar in BaseX? >> >> If not what do you recommend to define a Java regular expression based >> function for XQuery? >> >> Thanks in advance, >> Gary >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk@mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk