title: Need help modifing regex
body: <p>I am currently using the regex given below to add hrefs to my urls. But recently I got a bug because one of the urls had a full stop after it and the regex added the dot into the link.</p>
  
  <pre><code>(?:https?|ftps?)://[\\w/%.-]+", "&lt;a href='$0'target='_blank'&gt; $0&lt;/a&gt; 
  </code></pre>
  
  <p>So,can it be modfied so that it takes only one dot? I'm using Java.</p>