v="a\bc"
echo ${v/\\b/_\\_\z_}