Does anyone know of a good set of tutorials for regular expressions? Particularly in a Textmate context? I am familiar with regular expression syntax, and the basic concepts. Even own a copy of Jeffrey Friedl's book "Mastering Regular Expressions" and read though the Perl parts.
What I am looking for are some high quality demonstrations of regex usage with a clear explanation of the pattern being matched and how to decompose the regex syntax. I want to take my regex fu to the next level. I want to be able to think in regex but I need something tangible to practice with to cement the knowledge in my head. What would be helpful is some text and code examples to work through with specific tasks and associated regex solutions, preferably functional in a Textmate context. The place where I find I want to use it most is in the text editor. So the ability to do powerful search and replace functions is desired. And sometimes just search. So the ability to quickly write partial regex that narrows the results down and then parse through a complex document iteratively would be handy.
Perhaps an interactive demo where the patterns are revealed as you type the regex. And some useful patterns and examples to test and play with. Perhaps some regex flash cards or a simple regex based game.
For you regex gurus out there what did you do to really cement your understanding of regex?