Jan-19-2020, 10:16 AM
(Jan-18-2020, 11:41 PM)Gribouillis Wrote: The problem is that I and S belong to the uppercase version of the character sequence
Yes, that's what I figured. Thanks for confirming that. I was hoping for some hidden trick to make Python use the same logic as Perl does for such cases, but I guess there is no such magic trick. Maybe in the future...
Both Perl and Python do the right thing, I now believe, but have made different choices - both logical in their own way. For my purposes the Perl solution is more convenient, but for other, more important reasons, I'm still going ahead with porting the whole application to Python. I can live with this very minor inconvenience since this is a very narrow corner-case in my application. I have now managed to get around it by not allowing case insensitive searching in certain cases, and not bothering with other cases that really don't matter in the context of the application.
Thanks for the help! Much appreciated!