Anand Pilania :verified:<p>Check out this <a href="https://phpc.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://phpc.social/tags/function" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>function</span></a> for parsing <a href="https://phpc.social/tags/URLs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>URLs</span></a> into their components! Easily extract <a href="https://phpc.social/tags/protocol" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>protocol</span></a>, <a href="https://phpc.social/tags/host" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>host</span></a>, <a href="https://phpc.social/tags/path" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>path</span></a>, <a href="https://phpc.social/tags/query" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>query</span></a> <a href="https://phpc.social/tags/parameters" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>parameters</span></a>, and more from any URL string. Perfect for handling URL <a href="https://phpc.social/tags/manipulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>manipulation</span></a> in web applications. <a href="https://phpc.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://phpc.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WebDev</span></a> <a href="https://phpc.social/tags/URLParser" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>URLParser</span></a></p><p><a href="https://gist.github.com/AnandPilania/c4347005b220b348222b441287c05199" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">gist.github.com/AnandPilania/c</span><span class="invisible">4347005b220b348222b441287c05199</span></a></p>