【发布时间】:2018-01-26 03:14:48
【问题描述】:
假设我的 tibble 中有这个,
Transcript
1 Hi i would like to find out more about <a href="https://mywebsite.com/internalfaq/faq/154200">http://mywebsite.com/internalfaq/faq/154200</a> please help
2 Hello my results were withheld at <a href="https://mywebsite.com/123">https://mywebsite.com/123</a> hope you can help
3 Hello my friend join me at https://mywebsite.com/456
我试过了
links = data %>%
extract(Transcript, url.pattern)
但它并没有给我想要的东西。即使我提供了 url 模式,它也没有返回我的链接列表。它只返回我的第一个词。我做错了什么吗? 提前致谢!
这是我的网址格式:https://mywebsite.com/.*
【问题讨论】:
-
您的示例数据中似乎没有任何链接,因此您的预期结果不清楚。
-
对!添加了更多信息