Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我有一些提要,带有这样的项目标题
有些文本比一个文本更好http://t.co/blablabla #hashtag
然后我想只使用这样的正则表达式获取 URL
http://t.co/blablabla
我怎么做 ?
您可以使用此正则表达式:
http:\/\/t.co\/[^\s]+
http://regex101.com/r/pK6lW5