[bash] regex and match