I really like being able to use =~ and !~ in Perl to evaluate a string against a regular expression. I'd like to port this functionality over to C#, but it appears that, while you can overload operators, you can't create new ones.
I'm considering extending the string type to provide a Match() method that will allow me to pass a regular expression in to be evaluated, but I'm wondering of there's a better way.
Anyone have a better solution?