From 520d2c324ec41516fc5e8b246dbf37e33e03a4b3 Mon Sep 17 00:00:00 2001 From: Ralph Hightower <32745442+RalphHightower@users.noreply.github.com> Date: Thu, 23 Feb 2023 11:29:36 -0500 Subject: [PATCH] fix: add 'or' to 900 for area code Create long string --- MonsterRegularExpression_NANPA_formats.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MonsterRegularExpression_NANPA_formats.cs b/MonsterRegularExpression_NANPA_formats.cs index 91a027d..6651672 100644 --- a/MonsterRegularExpression_NANPA_formats.cs +++ b/MonsterRegularExpression_NANPA_formats.cs @@ -23,11 +23,11 @@ class TelephoneFormatDetection "(?(700))|" + "(?(710))|" + "(?(8[00|33|44|55|66|77|88]))|" + - "(?(900))" + + "(?(900))|" + "(?([2-9][0-8][0-9]))" + ")-" + "((?555)-(?(01[0-9]{1}))|(?(1212|4334))|((?[2-9][0-9][0-9])-(?[0-9{3}])))$"; - string test = ""; + string test = "(^(?([2-79](11|22|33|44|55|66|77|88|99)))$|((?[2-9]9[0-9]|39[0-9]|96[0-9])|(?(5[00|2[1-9]|33|44|66|77|88]))|(?(6[00|22]))|(?(700))|(?(710))|(?(8[00|33|44|55|66|77|88]))|(?(900))|(?([2-9][0-8][0-9])))-((?555)-(?(01[0-9]{1}))|(?(1212|4334))|((?[2-9][0-9][0-9])-(?[0-9{3}])))$"; }