Using glob replace regular expression.