Question
Normalization rules are configured as shown in the following table. Rules are matched from top to bottom.
| Rank | Name | Pattern | Translation |
|---|---|---|---|
| 1 | AU-NewSouthWales-Local | ^([2-9]\d{7})$ | +612$1 |
| 2 | AU-TollFree | ^(1[38]\d{4,8})\d*$ | +61$1 |
| 3 | AU-Premium | ^(19\d{4,8})$ | +61$1 |
| 4 | AU-Mobile | ^0(([45]\d{8}))$ | +61$1 |
| 5 | AU-National | ^0([23578]\d{8})\d*(\D+\d+)?$ | +61$1 |
Use the drop-down menus to select the answer choice that completes each statement based on the information presented.
Explanation
Dialing 70105000: the eight digits start with 7 and match rule 1, ^([2-9]\d{7})$, which is checked first, so the number is translated to +612 followed by the digits, giving +61270105000. The other choices would need a different rule or no translation, and none of the lower rules is reached once rule 1 matches.
Numbers beginning with 1900: rule 1 needs exactly eight digits starting 2-9 and rule 2 needs 13 or 18 as the first two digits, so neither matches; rule 3, ^(19\d{4,8})$, matches, so the AU-Premium rule normalizes the number. AU-Mobile and AU-National both require a leading 0.