Hello!
Today I noticed that I can successfully use the following regular expression inside XQuery but the same regexp fails when using it in the GUI's searchboxes (the ones appearing when pressing Ctrl+F) when enabling regular expression search.
This is the regular expression and probably it is the block escape that is causing the error:
(¹|²|³|\p{IsSuperscriptsandSubscripts})
The error message says:
"Regular Expression: java.util.regex.PatternSyntaxException: Unknown character property name {issuperscriptsandsubscripts} near index 37"
Probably the lowercaseing of the block escape name is causing the error and hopefully it can be fixed without too complex logics.
Best regards
Kristian K
Hi Kristian,
You are right: The text panels of the BaseX GUI provide support for regular Java regex expressions, which are indeed different to the XQuery semantics. It would be pretty difficult to rewrite the text components for XQuery regex support; but I’ll have some more thought on this.
Cheers Christian
On Sat, Jul 30, 2016 at 12:12 PM, Kristian Kankainen kristian@keeleleek.ee wrote:
Hello!
Today I noticed that I can successfully use the following regular expression inside XQuery but the same regexp fails when using it in the GUI's searchboxes (the ones appearing when pressing Ctrl+F) when enabling regular expression search.
This is the regular expression and probably it is the block escape that is causing the error:
(¹|²|³|\p{IsSuperscriptsandSubscripts})
The error message says:
"Regular Expression: java.util.regex.PatternSyntaxException: Unknown character property name {issuperscriptsandsubscripts} near index 37"
Probably the lowercaseing of the block escape name is causing the error and hopefully it can be fixed without too complex logics.
Best regards
Kristian K
basex-talk@mailman.uni-konstanz.de