allending/Kiwi — pull request #257 by kristopherjohnson (2013-04-11 11:07:04+00:00)
Title: Add support for matchPattern:

Adds a new matcher, KWRegularExpressionPatternMatcher, that supports use of regular expression patterns in expectations. For example:

[[@"ababab" should] matchPattern:@"(ab)+"];
[[@"ababab" shouldNot] matchPattern:@"(abc)+"];

[[@" foo " should] matchPattern:@"foo"];
[[@" foo " shouldNot] matchPattern:@"^foo$"];

See https://gist.github.com/kristopherjohnson/5362002 for example usage.