title: use regex in java with non printable chars
body: <p>I'm using regex found here (<a href="http://www.mkyong.com/regular-expressions/domain-name-regular-expression-example/" rel="nofollow">link</a>) to extract domain string that works fine.</p>
  
  <p>the regex is  </p>
  
  <pre class="lang-html prettyprint-override"><code>^((?!-)[A-Za-z0-9-]{1,63}(?&lt;!-)\\.)+[A-Za-z]{2,6}$
  </code></pre>
  
  
  
  <p>I'm wondering, how could I change it in order to match domain which contains a non printable character instead of dot (.) ? </p>
  
  <p>I know that regex code are like \x01, \x02, etc..
  but if I replace dot with one of them, the regex doesn't match anymore</p>
  
  <p>thanks in advance</p>