javascript - Regular match one of multiple URLs?
女神的闺蜜爱上我
女神的闺蜜爱上我 2017-06-26 10:51:41
0
1
708
https://ddd.comhttps://xxx.comhttps://bbb.com

I want to match the first https://ddd.com, how should I write it? The URL name is random
I wrote it myself /https:\/\/\w (?:\. com)/, but all URLs are matched, I only need the first

女神的闺蜜爱上我
女神的闺蜜爱上我

reply all(1)
小葫芦

What you need is lazy matching pattern

/https:\/\/\w+?(?:\.com)/
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template