Can anyone lead me to the right direction on how to do this:

I want toreplace all text after a certain character or symbol

Say a line in the text file contains ":"

I want everything after...