相关疑难解决方法(0)

删除两个括号之间的所有文本

假设我有这样的文字,

text<-c("[McCain]: We need tax policies that respect the wage earners and job creators. [Obama]: It's harder to save. It's harder to retire. [McCain]: The biggest problem with American healthcare system is that it costs too much. [Obama]: We will have a healthcare system, not a disease-care system. We have the chance to solve problems that we've been talking about... [Text on screen]: Senators McCain and Obama are talking about your healthcare and financial security. We need more than talk. …
Run Code Online (Sandbox Code Playgroud)

regex r stringr

14
推荐指数
2
解决办法
1万
查看次数

标签 统计

r ×1

regex ×1

stringr ×1