title: Check if string ends with certain pattern
body: <p>If I have a string like:</p>
  
  <pre><code>This.is.a.great.place.too.work.
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>This/is/a/great/place/too/work/
  </code></pre>
  
  <p>than my program should give me that the sentence is valid and it has "work".</p>
  
  <p><br>
  If I Have :</p>
  
  <pre><code>This.is.a.great.place.too.work.hahahha
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>This/is/a/great/place/too/work/hahahah
  </code></pre>
  
  <p>then my program should not give me that there is a "work" in the sentence.</p>
  
  <p><br>
  So I am looking at java strings to find a word at the end of the sentence having <code>.</code> or <code>,</code> or <code>/</code> before it. How can I achieve this? </p>