In my experience you have to carefully read the documentation for each to understand the differences. Honestly it is a total PITA having so many different syntaxes, and I can never keep them straight in my head.
Most GNU programs like grep, find, locate, and others support multiple types of regular expressions which can be specified on invocation. Even more confusingly one must remember different methods of escaping various meta-characters in various environments.
HTH
|