locked
regular expression to validate number RRS feed

  • Question

  • I am new to regular expression but i need help in validating Ghana's telephone number which starts with 233 so i need all numbers entered to start with 233 without any characters(+,-,/) beginning the number and no spaces within the numbers. so example will be

    233244690009

    Tuesday, March 15, 2011 6:38 AM

Answers

  • Hi, this is completely the wrong forum to ask this.    :)

    No worries. Someone will hopefully move it. 

     

    All the forums are listed here....

    http://social.msdn.microsoft.com/Forums/en-US/categories

     

    there is a forum for asking about regular expressions... if your not sure where to post use this forum... it's a forum to ask what forum is best place to post

    http://social.msdn.microsoft.com/Forums/en-US/whatforum/threads

     

    Shouldn't really answer this because it's the wrong forum but .... I wouldn't be me if I didn't.

    This will match any 12 digits that start with 233

    233\d{9}


    "The programmer, like the poet, works only slightly removed from pure thought-stuff. He builds his castles in the air, from air, creating by exertion of the imagination." - Fred Brooks
    • Marked as answer by azaromikironi Tuesday, March 15, 2011 10:42 AM
    Tuesday, March 15, 2011 8:09 AM