【发布时间】:2012-11-30 12:18:55
【问题描述】:
我有一个推文文档,它包含这样的行:
RichardJ0nes -- Should I upgrade to an iPhone 5? Decisions, decisions!
AnthonyMOliva -- @AnthonyMOliva AT&T offering iPhone 5 refurbished starting at $99: Two months after making its debut, refur... http://t.co/IsPDzIrD #BBC
mittrashi -- RT @timesofindia: Apple iPhone 5S, iPad 5 already in the works? - The Times of India http://t.co/s782BHp5
我想清理这个文档。 首先我想清理用户名(例如:RichardJ0nes -- 或@AnthonyMOliva),其次我想清理链接(例如http://t.co/s782BHp5)。
应该是这样的:
Should I upgrade to an iPhone 5? Decisions, decisions!
AT&T offering iPhone 5 refurbished starting at $99: Two months after making its debut, refur...
Apple iPhone 5S, iPad 5 already in the works? - The Times of India
我尝试在记事本++上使用正则表达式做一些事情,但我无法清理文本
我尝试删除第一个用户名
找到.*\(--\)
替换:\1
但它不适用于记事本++。我该怎么做,请给我一个想法?
【问题讨论】: