NSE 6 – FortiWeb 6.1 — Question 11
Which regex expression is the correct format for redirecting the URL http://www.example.com?
Answer options
- A. www\.example\.com
- B. www.example.com
- C. www\example\com
- D. www/.example/.com
Correct answer: A
Explanation
The correct answer is A because it uses the escape character '\' to properly format the dots in the URL, which is necessary for regex patterns. Option B lacks the escape characters, making it invalid in regex. Option C incorrectly uses backslashes, and Option D misuses slashes instead of escaping the dots.