Help with RegExp

Hi. I need some help putting together a regExp pattern for a string replace.

I want to remove the parts of a string that

  1. Starts with “<foo” and ends with “>”
  2. Equals “</foo>”

How would that pattern look?