in reply to Re: Consolidate ranges (quick and dirty with a cool regexp)
in thread Consolidate ranges (quick and dirty with a cool regexp)

Absolutely (and definitely when I'd have to write production code!), but using just basic Perl reduces my cognitive load. And that is also why I framed this as a learning experience and marked it quick & dirty. ;-)

Also good to see the min_range_len option, as I actually don't like ranges of length 2; curious to see the default is 4, I would put it at 3.

(Hmm, so you can use Unicode in general markup, but not in code blocks. Good to know.)

  • Comment on Re^2: Consolidate ranges (quick and dirty with a cool regexp)

Replies are listed 'Best First'.
Re^3: Consolidate ranges (quick and dirty with a cool regexp)
by hippo (Archbishop) on Oct 30, 2024 at 11:29 UTC

    If you are up for similar learning experiences then have a browse of the https://theweeklychallenge.org site.

    (Hmm, so you can use Unicode in general markup, but not in code blocks. Good to know.)

    Yes - you too can have hippos in your sig! Generally the rule is always to put code and data within <code>...</code> tags unless it includes utf-8 in which case enclose it in <pre>...</pre> tags instead.


    🦛