expr3extrait: extracts the contents of parentheses from a character

Description Usage Arguments Details Value Examples

View source: R/f0.rbsb1.code.r

Description

returns a character vector with the contents of successive parentheses. Parentheses and text outside parentheses are eliminated.

Usage

1
expr3extrait(cara, opa="(", cpa=")")

Arguments

cara

character(1) to be considered.

opa

opening tag (character(1)).

cpa

closing tag (character(1)).

Details

Parenthesis are defined with 'opa' and 'cpa' arguments

Value

A character vector or nothing when there is no parentheses

Examples

1
2
 rbsb3k("reset"); # for R checking convenience
 expr3extrait('avant (8h) ce n_est pas l_heure, plus tard que (9h) non plus')

rbsb documentation built on May 2, 2019, 4:41 p.m.

Related to expr3extrait in rbsb...