Both with and by may be used together with the verb replace.
These are the most common structures:
Active: something/somebody replaces something/somebody
- Computers cannot replace teachers.
- A new version will soon replace the current software.
- Mrs Evans replaced the previous manager.
Active: replace something/somebody with something/somebody
- We replaced the old cupboard with some shelves.
- You can’t replace me with anyone. I’m irreplaceable.
- They replaced old workers with young ones.
Passive: something/somebody is replaced by something/somebody
- The old computers have been replaced by new ones.
- Janet’s smile disappeared and was immediately replaced by a frown.
- I don’t want to be replaced by a younger worker.
Recommended for you: Take Part In – Participate In – Partake In