It's been a while since I did anything with BaseX. The last version I used was 
BaseX 6.5. Today I downloaded the latest version 7.0.2 and ran into a problem 
when trying to revive an old project. I get messages saying " [FORX0002] 
Invalid escape character: '\b'". Since the use of \b is rather essential to my 
project I had little choice but to investigate, so I retrieved the BaseX source 
code to see if I could determine the problem. I found the following in 
RegEx.java, line 88:

        if("0123456789cCdDniIrsStwW|.-^$?*+{}()[]\\".indexOf(c) == -1)
          REGESC.thrw(input, c);

I believe that's a mistake and should include 'b' and read:

        if("0123456789bcCdDniIrsStwW|.-^$?*+{}()[]\\".indexOf(c) == -1)
          REGESC.thrw(input, c);

When I make that modification my program works again as before. There may be 
more missing? I'm not especially a RegExp expert. And I'd like to make sure 
this modification didn't inadvertantly break something else that I just haven't 
noticed yet.

Mark Boon



_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

Reply via email to