Non-Capturing Group(?:(?:\+\(?[0-9]{1,3}|\(?\b[0-9]{4})\)?)? ?repeats the group contents below at most once:
Non-Capturing Group(?:\+\(?[0-9]{1,3}|\(?\b[0-9]{4}) 1st Alternative\+\(?[0-9]{1,3} \+the literal + (4310 / 538 / 2B16)
\(?optionally matches the literal ( (4010 / 508 / 2816)
Character Class[0-9]{1,3} {1,3}matches between 1 and 3 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
2nd Alternative\(?\b[0-9]{4} \(?optionally matches the literal ( (4010 / 508 / 2816)
\ban ASCII word boundary
{4}matches exactly 4 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
\)?optionally matches the literal ) (4110 / 518 / 2916)
\h*any horizontal whitespace character, repeated any number of times
\)?optionally matches the literal ) (4110 / 518 / 2916)
?matches at most one character from the set below:
-the literal - (4510 / 558 / 2D16)
\hany horizontal whitespace character
.the literal . (4610 / 568 / 2E16)
\(?optionally matches the literal ( (4010 / 508 / 2816)
Character Class[0-9]{1,3} {1,3}matches between 1 and 3 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
\)?optionally matches the literal ) (4110 / 518 / 2916)
?matches at most one character from the set below:
-the literal - (4510 / 558 / 2D16)
\hany horizontal whitespace character
.the literal . (4610 / 568 / 2E16)
{3}matches exactly 3 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
?matches at most one character from the set below:
-the literal - (4510 / 558 / 2D16)
\hany horizontal whitespace character
.the literal . (4610 / 568 / 2E16)
Character Class[0-9]{3,4} {3,4}matches between 3 and 4 characters from the set below:
0-9one character from 0 (4810) to 9 (5710)
g modifier: global. Finds all matches instead of stopping after the first
m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string