R/utils.R
whapi_only_digits.Rd
Removes all non-digit characters from the input string. Useful for cleaning phone numbers, CNPJs/CPFs, or process codes.
whapi_only_digits(x)
Character vector or string. If NULL, an empty string is used.
NULL
A string containing only numeric digits.
whapi_only_digits("(81) 98765-4321") #> [1] "81987654321" #> "81987654321"