lookahead.rb

Path: lib/parslet/atoms/lookahead.rb
Last Update: Thu Apr 26 16:22:26 -0400 2012

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

Example:

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

[Validate]