2015-10-14 23 views
-2

我忘了这样做的正则表达式,但我有清单,像这样的文字:记事本++文本的列lenght

muro33:s574474 < 7焦炭

iklexi:b51111 < 6焦炭

don523:uez3w4 < 6炭

sonic353:l5431< 5焦炭

如何DELIM

回答

0

(.+?):.{5}$后delte 5字符多线 - 这正则表达式可能会有所帮助

(.+?) # lazy capturing of all characters before colon 
:  # matches colon 
.{5} # matches any 5 characters 
$  # matches the end of the string 
+0

惊人的感谢:) – user5445195