Skip to contents

Guides

Move from base R and stringr

The re_*() function for each base R and stringr function, and the places where the result differs.

Bound the work of a match

Set match, depth and heap limits so that a pattern or input you do not trust gives an error or an NA instead of a stall.

Link to zuregex from C

Use zuregex’s bundled PCRE2 from another package’s C code, through LinkingTo and the zr_*() functions.

Concepts

Design and motivation

Why zuregex exists next to base R’s own PCRE2, how the cache and the threads work, what it was checked against, and what it leaves out.

Performance against base R and stringi

How long zuregex takes for common tasks, next to base R’s perl = TRUE functions and stringi, and what the numbers do and do not show.