At a past position, the team I was on had a #regex that was several kilobytes in length in several products. It was the stuff of nightmares!
We only managed by splitting their definition strings into multiple pieces that were assembled kind of like a puzzle.
That said, it was also an amazing learning experience and taught me about things to be extremely careful about, like don’t go too deep with the nesting of groups, and definitely don’t sprinkle deeply nested groups with the Kleene star or anything else that is unbound in length or repetition.
(I still love #RegularExpressions for their power, though.
)
#RegularExpression #regexes #work