A replace-cursor like this suggestion is standard practice in most decent IDE's (or at least optional).