Q:

Unable to replace different matches with a single replace in Vim

I tried the following code unsuccessfully
:%s/{car,beatles}/mas/g

How can I replace car and beatles with mas in Vim with a single command?

A:

This should work:
:%s/\(car\|beatles\)/mas/g

