use*_*487 1 java regex text notepad++
我有一个推文文档,它包含这样的行:
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
Run Code Online (Sandbox Code Playgroud)
我想清理这份文件.首先,我想清理用户名(例如: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
Run Code Online (Sandbox Code Playgroud)
我尝试在记事本++上使用正则表达式做一些事情,但我无法清理文本
我尝试使用
find .*\(--\)
replace 删除第一个用户名:\1
但它对记事本++不起作用.我该怎么办,请给我一个主意?