Prepares diagnosis code regular expressions by removing spaces and converting to uppercase.
Examples
regex_clean("e11 ")
#> Error in regex_clean("e11 "): could not find function "regex_clean"
regex_clean(c(" i10", " E11 "))
#> Error in regex_clean(c(" i10", " E11 ")): could not find function "regex_clean"
