Filter Phone Number

Finds and extracts phone numbers from a piece of text, and returns the text with the numbers removed. Use it to detect or redact phone numbers in a message.

What it does

  • Scans the input text for phone numbers in common US formats.
  • Returns the list of phone numbers found and whether any were found.
  • Returns a cleaned version of the text with the phone numbers removed, alongside the original.

Inputs

NameTypeDescription
TextStringInput text to lookup/clean

Outputs

NameTypeDescription
SuccessBooleanSuccessfully ran the filter
Phone NumbersListlist of phone numbers
Found?BooleanFound any phone number?
Clean TextStringText with phone number(s) removed
Original TextStringInput Text

Notes

  • Recognises standard US formats such as ###-###-####, (###) ###-####, ### ### #### and ###.###.####.