There is a module called parse a phone number. You can use it to convert the number in several standardized formats. Even if it doesnβt give you the one you need directly, it can help standardize the numbers first so then you can use a replace or a switch function to reformat it easily.
For this requirement, using the Parse a Phone Number module is the recommended approach. By selecting or mapping the appropriate country from the list, you can ensure accurate formatting and parsing.
To demonstrate the example use case you mentioned, the same result can also be achieved by using regex patterns with the Text Parser module, as shown in the screenshots below.
Thank you for taking the time to mark the answer as a solution - it truly helps keep the community organized and makes it easier for others facing similar issues to find the right guidance quickly.
Really appreciate your support!
Best regards, Msquare Automation Platinum Partner of Make @Msquare_Automation