Learn R Programming

icd (version 3.2.0)

re_just: Limit a regular expression to just what is given

Description

update regular expression to limit by start and end, with or without white space

Usage

re_just(x, whitespace_ok = FALSE)

re_just_ws(x)

re_wrap_or(x)

Arguments

x

single string containing a regular expression

whitespace_ok

Single logical, if TRUE, the default, matches for ICD codes will accept leading and trailing white space.

Functions

  • re_just_ws: allow white space

  • re_wrap_or: contain any | options within a regular expression, e.g. ICD-9 codes without ^ or $.