title: How to create my own 'Smarty' like tags
body: <p>what is the simplest method to do the following</p>
  
  <p>Look at a block of text and anywhere it finds %sometxt% replace that with something else,</p>
  
  <p>So basically any text that is enclosed within a set of percentage signs similar to how Smarty do this?</p>