NSE 6 – FortiWeb 6.1 — Question 11

Which regex expression is the correct format for redirecting the URL http://www.example.com?

Answer options

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.