title: Regex to match last character of words having length greater than 1
body: <p>I want to match last character of every word in a sentence in which , last character of only those words should be matched whose length is greater than 1.</p>
  
  <p>For example, if sentence is:-</p>
  
  <pre><code>I love regex.
  </code></pre>
  
  <p>Then regex should match last character of <strong>love</strong> and <strong>regex</strong> only, i.e., <strong>e</strong> and <strong>x</strong> , not <strong>I</strong>.</p>
  
  <p>So far i am able to match last character of every word, including those having length 1, using this regex :-</p>
  
  <pre><code>[a-zA-Z0-9](?= |\.|,|$)
  </code></pre>
  
  <p>But i want to match last character of only those words having length greater than 1. How can i do this?</p>
  
  <p>Test link:-
  <a href="https://regex101.com/r/7tnXnB/1/" rel="nofollow noreferrer">https://regex101.com/r/7tnXnB/1/</a></p>