Given a block of text, I need to parse it for the existing of a keyword. Then on the first appearance of the keyword, I need to wrap bold tags around it (if it doesn't already have them), on the second appearance of the keyword, italics, and on the third, underline.
Example using the keyword "help":
This is some text with the keyword "help". If you can help, I really appreciate it. Thanks for the help! If there are any more occurrences of the keyword help, I'll ignore them.
Would be rewritten to be...
This is some text with the keyword "<b>help</b>". If you can <em>help</em>, I really appreciate it. Thanks for the <u>help</u>! If there are any more occurrences of the keyword help, I'll ignore them.