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
| Name | Type | Description |
|---|---|---|
| Text | String | Input text to lookup/clean |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Successfully ran the filter |
| Phone Numbers | List | list of phone numbers |
| Found? | Boolean | Found any phone number? |
| Clean Text | String | Text with phone number(s) removed |
| Original Text | String | Input Text |
Notes
- Recognises standard US formats such as ###-###-####, (###) ###-####, ### ### #### and ###.###.####.