📝 Overview
This guide will show you how to insert hyphens in continuous mobile phone numbers using regular expressions.
☝️ Note:
This method works for mobile numbers only, not landline numbers.
📍 Strings & Actions to Use
Output: A continuous mobile phone number that you want to format with hyphens.
Action: Use the "Replace Data" action under Data Conversion.
🛠️ How to Set Up
In the Flowbot edit screen, click the + button to add a new action.
Go to Data Conversion → Replace Data.
In the setup, use the following:
String to Replace: The continuous mobile phone number you want to format with hyphens.
Search Part to Replace (specify regular expressions):
(?<=^.{3})|(?<=^.{7})
String after Replacement:
-
(This will add hyphens after the 3rd and 7th characters in the number.)
📚 Related Guides
Search Keywords
Search Keywords
Regular expressions, phone number formatting, hyphen insertion, mobile phone numbers