문제

for example, I have some feed, with an item title like this

Some text is better than one text http://t.co/blablabla #hashtag

then I want to get only the URL using regex like this

http://t.co/blablabla

how do i do that ?

도움이 되었습니까?

해결책

You can use this regex:

http:\/\/t.co\/[^\s]+

http://regex101.com/r/pK6lW5

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top