Learn R Programming

stringb (version 0.1.17)

text_extract_all: extract regex matches

Description

wrapper function around gregexec and regmatches

Usage

text_extract_all(
  x,
  pattern,
  ignore.case = FALSE,
  perl = FALSE,
  fixed = FALSE,
  useBytes = FALSE,
  invert = FALSE
)

Arguments

x

text from which to extract

pattern

see grep

ignore.case

see grep

perl

see grep

fixed

see grep

useBytes

see grep

invert

if TRUE non-regex-matches are extracted instead