p_grepl: Searches for regular expressions

View source: R/p_grepl.r

p_greplR Documentation

Searches for regular expressions

Description

A wrapper function for grepl(), with the x argument listed first to support native piping.

Usage

p_grepl(x, ...)

Arguments

x

the character string

...

additional arguments passed to grepl().

Value

a logical object

Examples

c('dog','elephant','cat','horse','hippopotamus') |> p_grepl('^h')

baseverse documentation built on Oct. 27, 2026, 1:07 a.m.