QuestionQ20

VerifiedCustomer Service Management Integration

Which of the following regular expressions can be used to capture 198.51.100.207 from this string?

jdbc:198.51.100.207

Explanation

[\d\.] matches a digit or a literal period, and the trailing + repeats that match one or more times, allowing the capture group to include the entire dotted IPv4 address.

Community Discussion

No comments yet. Be the first to start the discussion!