我有一个推文文档,它包含这样的行:
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
但它不适用于记事本++。我该怎么办,请给我一个想法?