get first url segment with a javascript regex

前端 未结 0 378
北海茫月
北海茫月 2020-12-16 07:46

Hello I have this regexp to extract instagram.com usernames

const matches = value.match(
            /^(?:@|(?:https?:\\/\\/)?(?:www\\.)?instagr(?:\\.am|am\\.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题