is there away to remove lines that dont contain domthing for example
dsfsdfdfsdf:dsffdsd
dsfssfssdffsfsfs
gdhgfhhgshgf:fdgdgfdfdg
gdgfgfdgdfgdfgdgfdgfdg:343434
344334443:454545
it would remove dsfssfssdffsfsfs because it doesnt have :
Since it's a single character (":") that you're looking for the absence of, you can search for the regular expression that matches lines containing only characters that aren't ":"
^[^:]*\n
and replace them with nothing.
ben_josephs wrote:Since it's a single character (":") that you're looking for the absence of, you can search for the regular expression that matches lines containing only characters that aren't ":"
^[^:]*\n
and replace them with nothing.