lookahead.rb

Path: lib/parslet/atoms/lookahead.rb
Last Update: Fri Jul 15 14:35:39 -0400 2016

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

Example:

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

[Validate]