You have imported the re module into Python with the code import re. Which code searches the device_ids string variable for a pattern of “r15\w+”?

Automate Cybersecurity Tasks with Python | Weekly challenge 3 Quiz | 

You have imported the re module into Python with the code import re. Which code searches the device_ids string variable for a pattern of “r15\w+”?

  • findall(“r15\w+”, device_ids)
  • findall(device_ids, “r15\w+”)
  • re.findall(device_ids, “r15\w+”)
  • re.findall(“r15\w+”, device_ids)

 

Leave a Comment