Module: Parse::Constants

Included in:
Parse, Examples
Defined in:
app/models/parse.rb

Constant Summary collapse

LINE =
/[^\n]*/.capture
Line_terminator =
/\n/
Terminated_line =
(LINE*Line_terminator).group
LINES_cryptic =
/([^\n]*)(?:\n([^\n]*))*/
LINES =
(Terminated_line*Regexp::Any)*LINE*(Line_terminator*Regexp::Optional)
WORDS =
/([^\s]*)(?:\s([^\s]*))*/
CSV =
/([^,]*)(?:,([^,]*?))*?/