Skip to contents

Takes substring between matched strings. Avoids dependency on stringr package.

Usage

str_within(string, pattern = "^(structure\\()|(, \\.Names)")

Arguments

string

A string. String from which substring is extracted.

pattern

A regular expression that matches the beggining and end of a substring