RegEx – Match Numbers of Variable Length

RegEx – Match Numbers of Variable Length

Asked on January 8, 2019 in Regex.
Add Comment


  • 3 Answer(s)

    In RegEx – Match Numbers of Variable Length by:

    {[0-9]+:[0-9]+}
    
    

    And add pluses (+)

     

    Answered on January 8, 2019.
    Add Comment

    To match Numbers of Variable Length in regex use this code:

    \{\d+:\d+\}
    
    

    In above code  \d is actually shorthand for [0-9], And the addition of + which means “one or more”.

    Answered on January 8, 2019.
    Add Comment
    {[0-9]+:[0-9]+}

    try adding plus(es)

    Answered on March 5, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.