Skip to content

Commit

Permalink
fix: add 'or' to 900 for area code
Browse files Browse the repository at this point in the history
Create long string
  • Loading branch information
RalphHightower authored Feb 23, 2023
1 parent 3d930d4 commit 520d2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MonsterRegularExpression_NANPA_formats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class TelephoneFormatDetection
"(?<InterExch>(700))|" +
"(?<USgovt>(710))|" +
"(?<TollFree>(8[00|33|44|55|66|77|88]))|" +
"(?<Premium>(900))" +
"(?<Premium>(900))|" +
"(?<AreaCode>([2-9][0-8][0-9]))" +
")-" +
"((?<Exchange555>555)-(?<EntertainmentLineNumber>(01[0-9]{1}))|(?<DirectoryAssistance>(1212|4334))|((?<LineNumber555)(0[2-9]{2}|1[0-9]{3})))|((?<Exchange>[2-9][0-9][0-9])-(?<LineNumber>[0-9{3}])))$";

string test = "";
string test = "(^(?<ERC>([2-79](11|22|33|44|55|66|77|88|99)))$|((?<ReservedAreaCode>[2-9]9[0-9]|39[0-9]|96[0-9])|(?<NonGeoSvc>(5[00|2[1-9]|33|44|66|77|88]))|(?<CAservices>(6[00|22]))|(?<InterExch>(700))|(?<USgovt>(710))|(?<TollFree>(8[00|33|44|55|66|77|88]))|(?<Premium>(900))|(?<AreaCode>([2-9][0-8][0-9])))-((?<Exchange555>555)-(?<EntertainmentLineNumber>(01[0-9]{1}))|(?<DirectoryAssistance>(1212|4334))|((?<LineNumber555)(0[2-9]{2}|1[0-9]{3})))|((?<Exchange>[2-9][0-9][0-9])-(?<LineNumber>[0-9{3}])))$";
}

0 comments on commit 520d2c3

Please sign in to comment.