Phone number
FreeLogic@rabbinatix/phone-number by Rabbinatixupdated Oct 4, 2026
Removes spaces and dashes, then checks for 7–15 digits with an optional `+`.
Returns the cleaned number to store and a message to show.
Shows: Replace, Validate Regex.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Phone number. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
phone: Text
Outputs
normalized: Text
valid: Yes / No
message: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 5
Phone number
phone
Replace, String. 3 inputs, 1 output. step 2 of 5
Replace
text
search
replacement
result
Replace, String. 3 inputs, 1 output. step 3 of 5
Replace
text
search
replacement
result
Validate Regex, Validation. 1 input, 2 outputs. step 4 of 5
Validate Regex (phone)
value
valid
message
Return, Input / output. 4 inputs, 0 outputs. step 5 of 5
Return
normalized
valid
message
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| With spaces and dashes | {"phone":"+39 333-123 4567"} | {"normalized":"+393331234567","valid":true,"message":""} | |
| Letters | {"phone":"12ab"} | {"normalized":"12ab","valid":false,"message":"phone has an invalid format"} |
Try it
Versions
In this package
Phone number (entry)
