It would seem that the regular expression library that N++ uses is broken or simply improperly implemented. I was attemping to find the regex "<\?[^=](.*?)\?>" and it would appear that N++ is matching the question marks literally.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
According to http://notepad-plus.sourceforge.net/uk/regExpList.php \? should match a question mark. As far as I can see, even just ? matches a question mark, i.e. it appears to have no special meaning. Normally it means match 0 or 1 times, I think, but not here. So perhaps you're right, it is poorly implemented (wait till you try to work with newlines). But many regex implementations are quirky - you just have to know their idiosyncrasies.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It uses the Scintilla regex implementation, so it seems like we have no control over it. I've wondered whether it would be possible to write yet another find/replace plugin that uses its own regex implementation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It would seem that the regular expression library that N++ uses is broken or simply improperly implemented. I was attemping to find the regex "<\?[^=](.*?)\?>" and it would appear that N++ is matching the question marks literally.
According to http://notepad-plus.sourceforge.net/uk/regExpList.php \? should match a question mark. As far as I can see, even just ? matches a question mark, i.e. it appears to have no special meaning. Normally it means match 0 or 1 times, I think, but not here. So perhaps you're right, it is poorly implemented (wait till you try to work with newlines). But many regex implementations are quirky - you just have to know their idiosyncrasies.
That's entirely disappointing :/ Does N++ use it's own in-house library?
It uses the Scintilla regex implementation, so it seems like we have no control over it. I've wondered whether it would be possible to write yet another find/replace plugin that uses its own regex implementation.
+1
"That's entirely disappointing"