I recently updated macOS to the new Catalina version and switched to zsh from bash as recommended. The problem is that in my workflow we do some file operations that need regular expressions and I can't figure out how to make it work with zsh.
Here's my two regexes:
ls | grep ^[0-9].*.chunk.js$
ls | grep ^main.*.chunk.js$
They should match the following files: main.d9a85e98.chunk.js and 2.c2cbac0f.chunk.js
Any ideas or resources?
Thank you!