Project

Profile

Help

reg exp issue on JDK 1.4

Added by Anonymous over 17 years ago

Legacy ID: #4165830 Legacy Poster: marcvc (marcvc)

Michael, brought to my attention through xqts. I know you have reworked some of the reg exp code as part of the Saxon 8.9. However, the following query doesn't seem to behave correctly on JDK 1.4. matches('K', '[A-Z]', 'i') Thanks, Marc


Replies (2)

RE: reg exp issue on JDK 1.4 - Added by Anonymous over 17 years ago

Legacy ID: #4165960 Legacy Poster: Michael Kay (mhkay)

Yes: I've modified the JDK 1.5 regex code so it handles the "i" flag without relying on any support from the Java regex engine itself, but I haven't adapted that code to work with the JDK 1.4 regex translator, which is a fair bit more complex because all the handling of surrogate pairs is different. The number of cases where the results are incorrect seems so small that I'm not sure it's worth doing.

RE: reg exp issue on JDK 1.4 - Added by Anonymous over 17 years ago

Legacy ID: #4166586 Legacy Poster: marcvc (marcvc)

looks fair to me. Thanks, Marc

    (1-2/2)

    Please register to reply