I think this is great for maintainability.
I saw a blog post earlier advocating for using long form arguments in scripts, "—-help" instead of "-h"
The same applies here, as "/\d/" might be as recognisable for regex savvy developers as "ls -l" for bash savvy, but for other maintainers not as familiar this makes it way easier to maintain the code
The same applies here, as "/\d/" might be as recognisable for regex savvy developers as "ls -l" for bash savvy, but for other maintainers not as familiar this makes it way easier to maintain the code