Most regexp libraries let you use named groups and comments which let you write more maintainable expressions. The fact javascript does not may explain why so many people don't know how to use them.
https://www.regular-expressions.info/freespacing.html https://www.regular-expressions.info/named.html