Last Modified
2014-09-11 14:51:21 +0000
Requires

Description

Either positive or negative lookahead, doesn’t consume its input.

Example:

str('foo').present? # matches when the input contains 'foo', but leaves it