Understanding Cisco Cybersecurity Operations Fundamentals (CBROPS) — Question 84

Which regular expression is needed to capture the IP address 192.168.20.232?

Answer options

Correct answer: A

Explanation

Option A is correct because it accurately represents the structure of an IP address, consisting of four octets separated by periods. Option B is incorrect as it allows for an indefinite number of octets, which does not meet the requirements of a standard IP address. Option C is incorrect because it only allows for one to four octets, which does not match the required four for a complete IP address. Option D is incorrect as it does not follow the correct format for an IP address.