lucy24 - 11:15 pm on Dec 6, 2012 (gmt 0)
Try the following two lines (not simultaneously) and you'll see that enclosing within quotes does exactly that
I think he meant a full-text match, not a case-sensitive match. SetEnvIf is case-sensitive unless you expressly tell it NoCase.
You can say BrowserMatch (or BrowserMatchNoCase) as a special shortcut for user agents. In fact I never bother with anything else.
Quotation marks are most useful for enclosing strings that contain spaces, since the space would otherwise have syntactic meaning:
BrowserMatch ^-?$ keep_out
BrowserMatch Ahrefs keep_out
BrowserMatch "America Online Browser" keep_out
BrowserMatch Clipish keep_out
BrowserMatch Covario keep_out
BrowserMatch CoverScout keep_out
BrowserMatch "Extreme Picture Finder" keep_out
et cetera. (Quick cut & paste from my shared htaccess).