nerdexam
National_Instruments

200-500 · Question #131

You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)

The correct answer is B. preg_match() C. ereg(). See the full explanation below for the reasoning.

Question

You want to test if a string matches a relatively complex pattern. Which of the following functions can you use? (Choose 2)

Options

  • Amatch()
  • Bpreg_match()
  • Cereg()
  • Dregex()

How the community answered

(63 responses)
  • A
    5% (3)
  • B
    84% (53)
  • D
    11% (7)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice