例例文
We replaced the old carpet with a new wooden floor.
古いじゅうたんを新しい木の床に替えた。
EN英英で言うと
to take something away and put something new in its place
源語源・イメージ

re(元へ)+ place(置く)。A のところに B を置き直す。with は新しく持たせるもの。
!入試ポイント
replace A with / by B(A を B に替える)と substitute B for A(A の代わりに B を使う)で語順が逆になる点が最頻出。
「A を B と取り替える」。A が古い物、B が新しい物(replace the old battery with a new one)。受動態 A is replaced with / by B。replace A だけで「A に取って代わる」(Computers have replaced typewriters)の意味にもなる。
同じ意味substitute B for A
VSここが違う!
replace A with Bvssubstitute A for B
substitute A for B は「B の代わりに A(新しい物)を使う」で、新しい物が先。replace A with B は古い物が先。見分け方:前置詞が with なら古い物が先、for なら新しい物が先。
Replace butter with oil. / Substitute oil for butter.
覚覚え方
re(元に)+ place(置く)で「元の場所に別の物を置く」。with は「~を使って」で新しい物を示す。substitute A for B は for(代わり)で新しい物が先、と向きを対比する。
Q入試形式の例題
We need to replace this old printer a new one.
replace A with B で「A を B と取り替える」。古いプリンターが先、新しい物が with の後ろ。for は substitute A for B の前置詞で、replace とは組まない。to / from もこの意味では使わない。