Capturing Bing bot entries from Apache Web log file

Q

How to capture the Bing bot entries from Web log file?

Here are some Web log file entries:

✍: Guest

A

Bing Bot is a web crawler from Microsoft that obtains content for the Bing Search engine. Bing Bot uses the following user agent string:

Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)

The regular expression to capture Bing Bot entries from Apache Web log file can be written as: with the multiple lines modifier "m" specified:

Click the button to test this regular expression here online:

2013-02-04, 3302👍, 0💬