you can add a g at the end of the command to replace all the occurences:

s/oldtext/newtext/g will replace all occurences of 'oldtext' with 'newtext' in the set of text you feed it.