Endoro has posted a good pure batch solution.
Another option is to use a hybrid JScript/batch utility I wrote called REPL.BAT that performs regex search and replace on stdin and writes the result to stdout. It is purely script based, so no executables need to be installed. It works on any modern Windows machine from XP onward. REPL.BAT is available here.
Assuming REPL.BAT is in your current directory, or better yet, somewhere within your PATH:
findstr /n "pattern" "file.txt"|repl :.* ""