regex: regex

Description Usage Arguments See Also Examples

Description

Creates or modifies the search type to use regular expression matching

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
regex(object, ...)

## Default S3 method:
regex(object, ...)

## S3 method for class 'character'
regex(object, ...)

## S3 method for class 'SearchableOrPattern'
regex(object, ...)

Arguments

object

to make specification

...

additional arguments passes to pattern

regex

See Also

pattern

Examples

1
2
pat <- regex("a.+")
  detect( c('alpha','beta'), pat )

Example output

[1]  TRUE FALSE

searchable documentation built on May 1, 2019, 9:45 p.m.