Re:Super-expressive – Write regex in natural language
by tW4r on Thursday January 21, 2021 @11:24AM
(#25860583)
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