Regular expressions are important tools for programmers, however they are not the same as the pattern matching notation used by POSIX compliant shells. When using shells such as bash (which seems to be POSIX compliant at least with regex and pattern matching notation) it is important not to fall into the trap of thinking that the pattern matching notation used in pathname and parameter expansion is the same. There are some important differences. This series will explore these differences theoretically as well as practically.
- A Brief Theoretical Summary of the Differences Between Pattern Matching Notation Used in Pathname and Parameter Expansion and Extended Regular Expressions
- Practical Explorations of the Differences Between Pattern Matching Notation Used in Pathname and Parameter Expansion and Extended Regular Expressions
- A Table of Practical Matching Differences Between Pattern Matching Notation Used in Pathname and Parameter Expansion and Extended Regular Expressions