title: How can I match a specific Top Level Domain with a RegEx?
body: <p>I will be given a url, and need to match via a Regular Expression only if the URL ends in a certain top level domain. For instance, only match if the domain name is <code>.cn</code>. My idea is <code>*.cn</code>.</p>
  
  <p>But it shouldn't match, if the <code>.cn</code> substring is not at the end of the domain. For instance:</p>
  
  <ul>
  <li>cnn.com - no match</li>
  <li>cnn.cn - match</li>
  <li>www.csc.edu.cn/studyinchina/ - match</li>
  </ul>
  
  <p>How can I do that?</p>