nerdexam
IBM

A2150-195 · Question #102

Which regex should be used to capture only the domain name blackbox.computerfor all future machine names based on this example? `Computer=3 8 9.blackbox.computer'

The correct answer is D. Computer=. *?\. (.*?)\s. See the full explanation below for the reasoning.

Question

Which regex should be used to capture only the domain name blackbox.computerfor all future machine names based on this example? `Computer=3 8 9.blackbox.computer'

Options

  • AComputer= (. *?) \s
  • BComputer=389. (.*?)\s
  • CComputer=(389..*?)\s
  • DComputer=. ?. (.?)\s

How the community answered

(60 responses)
  • A
    15% (9)
  • B
    7% (4)
  • C
    3% (2)
  • D
    75% (45)

Community Discussion

No community discussion yet for this question.

Full A2150-195 Practice