title: Regex or statement
body: <p>I have regex:</p>
  <pre><code>preg_match( '/\/user\/([^\/?#]+)/', $url, $matches )
  </code></pre>
  <p>To get the username part of string:</p>
  <pre><code>https://www.youtube.com/user/username
  </code></pre>
  <p>So it checks what comes after <code>user</code>. How do I adjust it so it grabs the username in this example:</p>
  <pre><code>https://www.youtube.com/c/username
  </code></pre>
  <p>I've tried adding <code>|c</code> like this:</p>
  <pre><code>'\/user|c\/([^\/?#]+)'
  </code></pre>
  <p>But it doesn't work. What's the accurate approach?</p>