do not process linues if the buffer doesn't exist
clear the sequence if there is no pattern