What are the differences between glob-style patterns and regular expressions?
Traditional glob wildcards support a very narrow set of metacharacters — * is “anything”, ? is an arbitrary single character; Bourne shell also supports [a-z123] for a single character out of a set of alternatives, and [!x-z789] any one except those listed. Regex obviously is much richer, supporting repetitions, and (in ERE) alternation and specific … Read more