if(/nce|nse/) { s/$&/replace with what it's not/i; print; }