give n a default. use extended regex for sed