locateall: Positions of all pattern matches

View source: R/primitives.R

locateallR Documentation

Positions of all pattern matches

Description

Positions of all pattern matches

Usage

locateall(x, pattern, fixed = FALSE)

Arguments

x

An atomic vector.

pattern

A regular expression (or fixed string when fixed = TRUE).

fixed

Use fixed (non-regex) matching instead of regular expressions.

Value

A list of match positions (see gregexpr()).


basetable documentation built on Sept. 18, 2026, 9:13 a.m.