guy038,
No, I think your regex count method would work just fine; in other words, it wouldn’t see the “new 0” file. The “new 0” file I’m talking about doesn’t seem to be a real thing to the user, just something that gets returned with the notepad.getFiles() function of Pythonscript. Then again, it could be a file that means something special to N++ behind the scenes (and thus at the Pythonscript level it IS a real file), but I don’t know. Maybe Dave B is watching, knows the answers, and will comment.
Related: There are times in N++ when I see a “new _” file created briefly when I didn’t do it. [Side note: I rarely create a new file in the tradition manner; I almost always create a new file with the TakeNotes plugin, so I don’t have files of my own creation called “new _” in my tabs.] One example of this is when N++ is shutting down, I believe, sometimes I see a “new 1” tab created very briefly as N++ is cleaning up. I’d like to know more about these rogue “new _” files, if anyone knows…