Which regex statement extracts the DNS host from the cs-host value from the payload?

Which regex statement extracts the DNS host from the cs-host value from the payload?
A . cs-host=www.?([^|]*)
B . cs-host=.?www.(.*.?)
C . cs-host=(?:www.)?([^|]*)|(?:add|get|query|delete)s+(?:www.)?([^s]+)
D . cs-host=(?:www.)?([^|]*)|(?:http|ftp|tcp|https)s+(?:www.)?([^s]+)

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments