Shell regex customizing