Thread: Regex

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    1
    Rep Power
    0

    Regex


    Good day all
    Can you please help me with this regex code in c#

    string valid = @"\d[3]-\d[7]";

    it is not working.
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,295
    Rep Power
    9400
    Then you should fix it.

    "Well yes, but how do I do that?"

    It depends what the problem is. Not working on what input? What are you expecting to get and what did you actually get? Do you have the right code in place? Not confusing Matches with Groups?

IMN logo majestic logo threadwatch logo seochat tools logo