•  
      tasks #45285 Extract IP address from file
    #45285
    Ritish Singh (ritish31)
    2022-08-16 13:05
    2022-08-16 13:05
    Details
    Extract IP address from file
    1. Import the re module for regular expression.
    2. Open the file using the open() function.
    3. Read all the lines in the file and store them in a list.
    4. Declare the pattern for IP addresses. The regex pattern is :
    r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})'
    5. For every element of the list search for the pattern using the search() function, store the IP addresses in a list.
    6. Display the list containing the IP addresses.
    5 - Medium
    State of Progress
    2022-05-31
    100
    2022-06-02
    Ritish Singh (ritish31)
    Rakesh Kumar Verma (rakesh.verma)
    2022-06-01
    Closed
    Attachments
    References
    References list is empty