title: regular expression in groovy
body: <p>How to find whether the string contains '/' as last character .</p>
  
  <p>I need to append / to last character if not present only </p>
  
  <pre><code>ex1 : def s = home/work 
      this shuould be home/work/     
  ex2 : def s = home/work/
       this will remain same as home/work/
  </code></pre>
  
  <p>Mybad thought this is simple, but fails </p>
  
  <p>thanks in advance</p>