Improved Regex to ignore lines starting with #