REparser: Parse String Using Regular expressions

View source: R/Regex.R

REparserR Documentation

Parse String Using Regular expressions

Description

Takes an input string and parses it into a sequence of regular expressions.

Usage

REparser(
  res,
  parse.strict = TRUE,
  parse.exhaust = TRUE,
  parse.lead = FALSE,
  parse.rest = FALSE,
  toEnv = FALSE
)

REparse(
  str,
  res,
  parse.strict = TRUE,
  parse.exhaust = TRUE,
  parse.lead = FALSE,
  parse.rest = FALSE,
  reverse = FALSE,
  sep = NULL,
  toEnv = FALSE
)

Details

If exhaustive is TRUE, the string must be exhaustively broken up by the matching regular expressions. Superfluous (non-match) characters at the begginning, end, or in bettween matches, will result in all NA being returned.

——————————————-> NEEDS DOCUMENTATION <——————————————-


Computational-Cognitive-Musicology-Lab/humdrumR documentation built on Oct. 22, 2024, 9:28 a.m.