Named Capture to Data Tables

User-friendly functions for extracting a data table (row for each match, column for each group) from non-tabular text data using regular expressions, and for melting columns that match a regular expression. Patterns are defined using a readable syntax that makes it easy to build complex patterns in terms of simpler, re-usable sub-patterns. Named R arguments are translated to column names in the output; capture groups without names are used internally in order to provide a standard interface to three regular expression C libraries (PCRE, RE2, ICU). Output can also include numeric columns via user-specified type conversion functions. RE2 engine (re2r package) was removed from CRAN in Mar 2020 so must be installed from github.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2020.8.6 by Toby Dylan Hocking, a year ago

Report a bug at

Browse source code at

Authors: Toby Dylan Hocking

Documentation:   PDF Manual  

GPL-3 license

Imports data.table

Suggests testthat, re2r, stringi, ggplot2, tidyr, cdata, reshape2, knitr, markdown, R.utils

See at CRAN