I learned a lot of Perl RegEx syntax rules, but probably the only way to actually be able to write them is to do a bunch of ‘RegEx’ related exercises.
I looked over the other ‘Learn RegEx’ threads on StackOverflow, but haven’t found anything similar.
Is there any collection of such exercises? In form of book, HTML, with/without answers, it doesn’t matter, just to keep me writing RegExes for a while.
I suggest browsing the regex tagged questions on this site and experiment with your own answers without peaking at the current ones. You don’t need to post your answers, but I bet that sometimes you’ll come up with answers that are worth publishing.
Three good things with this approach: