Last Modified
2014-06-07 04:05:53 +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