Some cases, I have to replace/delete lines starts with particular word like \'public\' \'private\' Java classes or for XML file.
use this regexp: ^\s+.*$ This will remove all lines starting with . Make sure you have checked the checkbox "Regular expression"
^\s+.*$