fix preg : only match ^# instead of all characters