•  
      tasks #45280 Find the most occurring number in a string using Regex
    #45280
    Ritish Singh (ritish31)
    2022-08-16 12:50
    2022-08-16 12:50
    Details
    Find the most occurring number in a string using Regex
    Take a string with some numbers, and then we will find the number which has occurred a maximum number of times. We will use regex to do so.
    Python Regex also called REs or regular expressions is a module using which we can specify rules to set the possible strings to match. It is available in re module.
    Using findall() and counter() method
    In this method, we will find the numbers within the input string using re.findall() method. Then we will count the occurrence of each number using a counter() from the collection module.
    5 - Medium
    State of Progress
    2022-05-31
    100
    2022-06-02
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-05-31
    Closed
    Attachments
    References
    References list is empty