regex: regex

Description Usage Arguments See Also Examples

View source: R/regex.R

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 )

searchable documentation built on May 29, 2017, 12:30 p.m.