With/Without country code format ^((00228|\+228)\s?)+((2[2-7]|9[6-9]|70|79|9[0-3])\s?)\d{2}(\s?)\d{2}(\s?)\d{2}$ Explanation : Correct examples : 00228 98615284, +22898615284, +228 70695423, 00228 99 86 56 38