perl -pni.bak -e "s/1 (\w{1,2}v\w{1,2})/2 $1/" filename