NSE 4 – FortiGate 5.4 — Question 40
Which of the following regular expression patterns make the terms "confidential data" case insensitive?
Answer options
- A. [confidential data]
- B. /confidential data/i
- C. i/confidential data/
- D. "confidential data"
Correct answer: B
Explanation
The correct answer is B, as the 'i' flag in the pattern '/confidential data/i' specifies that the match should be case insensitive. Option A is incorrect because it is a character class that does not allow case insensitivity. Option C is invalid syntax for a regular expression and option D is just a string without any regex functionality.