re.match {omics}R Documentation

Pattern Matching and Extraction

Description

Matches and extracts substrings using regular expressions.

Usage

    re.match(pattern, x, ...)

Arguments

pattern

character string containing a regular expression.

x

a character vector where matches are sought, or an object which can be coerced by as.character to a character vector.

...

further arguments to be passed to regexec.

Details

This function is a wrapper for consecutive calls to regexec and regmatches.

Value

A matrix of matched substrings.

See Also

regexec and regmatches


[Package omics version 0.1-5 Index]