title: Capture a group containing URL encoded
body: <p>I tried, searching this but I didn't find anything.</p>
  
  <p>I found a regex pattern to extract username from facebook link:</p>
  
  <pre><code>(?:(?:http|https):\/\/)?(?:www.)?facebook.com\/(?:(?:\w)*#!\/)?(?:pages\/)?(?:[?\w\-]*\/)?(?:profile.php\?id=(?=\d.*))?([\w\-]*)?
  </code></pre>
  
  <p>The problem with this is that it can not capture the username if it is encoded. The original username is in arabic. For example, this kind of links:</p>
  
  <p><a href="https://www.facebook.com/%D9%82%D8%B1%D9%8A" rel="nofollow noreferrer">https://www.facebook.com/%D9%82%D8%B1%D9%8A</a></p>
  
  <p>The problem is with the percentages, but how to fix it? Please help me!</p>