powered by
Removes all non-digit characters from the input string. Useful for cleaning phone numbers, CNPJs/CPFs, or process codes.
whapi_only_digits(x)
A string containing only numeric digits.
Character vector or string. If NULL, an empty string is used.
NULL
whapi_only_digits("(81) 98765-4321") #> "81987654321"
Run the code above in your browser using DataLab