using regex, replace "011" with "+"

Peter Wang 46 Reputation points
2021-10-06T18:55:12.437+00:00

International call starts with 011. I would like to find all international calls, and replace 011 with a "+" sign. How can I achieve this goal using regex?
Thanks in advance,

Microsoft Teams | Microsoft Teams for business | Other
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,761 Reputation points Microsoft External Staff
    2021-10-07T02:31:06.41+00:00

    @Peter Wang ,

    Let us suppose that the inbound call is translated to a X-digit number. Then, you can follow the pattern and translation as below:
    *Pattern: ^110(\d{**X})$
    Translation: +$1***

    There are many examples of SBC configuration in this article. Please pay attention to Example SBC configuration part.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.