perl -pni.bak -e "s/1 (\w{1,2}v\w{1,2})/2 $1/" filename #### c:\> for %f in (*.html) do perl -pni.bak -e "s/1 (\w{1,2}v\w{1,2})/2 $1/" %f #### perl -pi.bak -e 's/\b(\w{1,2}v\w{1,2})\b/g$1<\/a>/" filename
## c:\> for %f in (*.html) do perl -pni.bak -e "s/1 (\w{1,2}v\w{1,2})/2 $1/" %f ##
## perl -pi.bak -e 's/\b(\w{1,2}v\w{1,2})\b/g$1<\/a>/" filename