How .NET Regular Expressions Really Work
moserware.com
moserware.com
This is just a random thought that I'm curious about. I'm not trying to troll the topic.
This is in fact why regexs are slow. The old Thompson NFA is orders of magnitude faster than current libraries. However, it can only recognize regular languages.
I wonder, are there any libraries for CFG's, that allow specifying the productions?
Although I have looked, I've been unable to find much more than a bunch of whitepapers and various incomplete projects.
Pretty awesome that he can do this sort of digging in his language of choice.