Ack search for literal strings [closed]

I am sick of having to escape things when I want to search for part of an html tag.

How can I ack search for exactly what I type without having to escape stuff?

e.g.

ack-grep 'console.log(foo'

I get:

Unmatched ( in regex; marked by <-- HERE in m/console.log( <-- HERE par/

You have to escape the regex.

ack 'console\.log\(foo'

(You should escape the . so that you don't match "consoleflog", because . matches any single character)

And if you would rather not do that, do this to quote every metacharacter automatically.

ack -Q 'console.log(foo'