Legacy Dev Forum Posts

 View Only

Sign Up

Number plan understanding Match Expression : ^(\+)([1-9]\d{1,14})$ , Normalized Number Expression : 031850$2

  • 1.  Number plan understanding Match Expression : ^(\+)([1-9]\d{1,14})$ , Normalized Number Expression : 031850$2

    Posted 06-05-2025 19:22

    Akhil070 | 2022-01-13 11:00:08 UTC | #1

    Need Help on understanding the expressions used in number planning. Please help me to understand the above expression.

    Thanks in Advance. Akhil Angara


    matheusscharf | 2022-01-13 16:02:49 UTC | #2

    Good afternoon Akhil070.

    I normally use the sites below to understand my regular expression. I hope helped you. https://regexr.com/ https://regex101.com/

    Follow below the result from regex101

    ^ asserts position at start of a line

    1st Capturing Group

    (\+)

    \+ matches the character + with index 4310 (2B16 or 538) literally (case sensitive)

    2nd Capturing Group

    ([1-9]\d{1,14})

    Match a single character present in the list below

    [1-9]

    1-9 matches a single character in the range between 1 (index 49) and 9 (index 57) (case sensitive)

    \d

    matches a digit (equivalent to [0-9])

    {1,14} matches the previous token between 1 and 14 times, as many times as possible, giving back as needed (greedy)

    $ asserts position at the end of a line


    system | 2022-02-13 16:03:08 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 13201