Digits only
A Google Sheets formula exercise from Sheetsdrill. Solve it with a formula bar on a live sheet in your browser, and it is checked the moment you submit.
The task
Phone numbers were typed in different styles. Remove everything that is not a digit, keeping the result as text. Fill B2 and B3 using REGEXREPLACE.
What this exercise teaches
REGEXREPLACE changes every match, not just the first, so one short pattern cleans the whole string.
A hint if you get stuck
\D (capital D) matches any character that is not a digit. Replace it with "" (empty text).
This exercise is part of Pro
Pro unlocks all 50 exercises, with worked solutions and progress saved to your account. The free exercises work without an account.
You create a free account first, so Pro is attached to it.
Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.