Ruby\'s Test::Unit has a nice assert_matches method that can be used in unit tests to assert that a regex matches a string.
Test::Unit
assert_matches
Is there anythi
A matcher similar to Ralph's implementation has been added to the official Java Hamcrest matchers library. Unfortunately, it's not yet available in a release package. The class is on GitHub though if you want a look.