I\'m new to TDD, and I find RegExp quite a particular case. Is there any special way to unit test them, or may I just treat them as regular functions?
I like to test the regexp against an opposite regex, I'll execute both against the possible test and make sure that the intersection is empty.