Thread:Project:Support desk/Check page on 'save' for a tag, if not there, add the tag

When a user clicks 'save' on page edit I would like to scan the text and if there is a certain tag in the text, leave it, if not then add the tag to the text. How would I do this? Thanks