Learn R Programming

re2 (version 0.1.3)

R Interface to Google RE2 (C++) Regular Expression Library

Description

Pattern matching, extraction, replacement and other string processing operations using Google's RE2 regular-expression engine. Consistent interface (similar to 'stringr'). RE2 uses finite-automata based techniques, and offers a fast and safe alternative to backtracking regular-expression engines like those used in 'stringr', 'stringi' and other PCRE implementations.

Copy Link

Version

Install

install.packages('re2')

Monthly Downloads

481

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 29th, 2023

Functions in re2 (0.1.3)

re2_match

Extract matched groups from a string
re2_extract_replace

Extract with substitutions
re2_count

Count the number of matches in a string
re2_regexp

Compile regular expression pattern
re2_get_options

Retrieve options
re2_replace

Replace matched pattern in string
re2_split

Split string based on pattern
re2_locate

Locate the start and end of pattern in a string
re2-package

re2: R interface to the Google's RE2 (C++) regular-expression library
re2_detect

Find the presence of a pattern in string(s)
re2_syntax

RE2 Regular Expression Syntax
re2_which

Select strings that match, or find their positions