regex-helpers | R Documentation |
A half-baked extract method
re_extract(pattern, replace, x)
extract_backticked(x)
extract_quoted(x)
is_backticked(x)
is_bracketed(x)
pattern |
character string containing a regular expression
(or character string for |
(character[1]
) The substituted string if a replacement is made, or NULL
otherwise.
extract_backticked()
: Extract contents of a backtick-enclosed string
extract_quoted()
: Extract contents of a quoted (single or double) string
is_backticked()
: Extract contents of a backtick-enclosed string
is_bracketed()
: Test whether contents are enclosed in brackets
This implementation is considered half-baked because there's no check for whether a replacement is made that results in the same string. This case will be interpreted the same as if there was no match.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.