Why is ex (Vim) catching matching pattern to the end of line?
The file contains the following line:
[assembly: AssemblyVersion("1.0.0.0")]
The Bash script that replaces one version with another:
echo "%s/AssemblyVersion\s*\(.*\)/AssemblyVersion(\"$newVersionNumber\")]/g
w
q
" | ex $filePath
Why does this catch the whole line to the end, so I have to add ] at the end of replacement string?