CiscoCisco
300-215 · Question #52
300-215 Question #52: Real Exam Question with Answer & Explanation
The correct answer is A: r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}. That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.
Submitted by andres_qro· Mar 6, 2026Forensics Techniques
Question
Refer to the exhibit. A network administrator creates an Apache log parser by using Python. What needs to be added in the box where the code is missing to accomplish the requirement?
Options
- Ar'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
- Br'\b'
- Cr'\b[1-9][0-9]{2,4}\b'
- Dr'\d{1,255}\.\d{1,255}\.\d{1,255}\.\d{1,255}
Explanation
That regular expression matches each octet of an IPv4 address (1–3 digits) separated by literal dots, allowing re.findall to pull every IP from the Apache log for counting.
Topics
#log parsing#Python regex#Apache logs#IPv4
Community Discussion
No community discussion yet for this question.