Construct a regular expression for an xref

reg_xref(only = TRUE)

Arguments

only

Whether to allow strings of only xrefs. If FALSE, the regular expression accepts patterns where text can come before or after the xref.

Value

A regular expression pattern for an xref.