by paulryanrogers · 8y ago · 0 comments
My preference in such cases is for multiple separated or longer REs (which can be at least split in the surrounding code) and each part named or heavily commented. Of course it's always worthwhile to consider non-RE solutions if the problem can be broken down enough.
EDIT: Fixed typo
I'm not sure how you could fix that without introducing completely new characters or color-coding parts of the expression though.
It's much better in languages with regex literals like Ruby and JavaScript.