How to make an arbitrary variable regex-safe
Archive of posts tagged escaping
Using shell variables in sed
How to safely use shell variables in sed
How to make an arbitrary variable regex-safe
How to safely use shell variables in sed