Class Parslet::Atoms::Re
In: lib/parslet/atoms/visitor.rb
lib/parslet/atoms/re.rb
Parent: Object

Matches a special kind of regular expression that only ever matches one character at a time. Useful members of this family are: character ranges, \w, \d, \r, \n, …

Example:

  match('[a-z]')  # matches a-z
  match('\s')     # like regexps: matches space characters

Methods

accept  

Attributes

match  [R] 
re  [R] 

Public Instance methods

Call back visitors visit_re method. See parslet/export for an example.

[Validate]