in reply to Re^2: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
in thread Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)

> a way to "forget" the group...

Ha! Someone already found a generic solution 14 years ago....:)

> Re^6: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (??{})

DB<1> x "ZBBCZZ" =~ /(??{'(.)\1*'})/g; 0 'Z' 1 'BB' 2 'C' 3 'ZZ' DB<2>

Brillant! :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re^3: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...) (forget captures )
  • Download Code

Replies are listed 'Best First'.
Re^4: Yet Another Rosetta Code Problem (Perl, Ruby, Python, Haskell, ...)
by eyepopslikeamosquito (Archbishop) on Oct 21, 2021 at 01:01 UTC

    And I see pKai is from Erlangen - an easy 216.6 km scenic drive from Darmstadt. :)

    Nice necropost BTW.

    Update: Maybe you should try to hire pKai to replace your new Python guy. :)

      I noticed.

      Actually our last "real" German Perl Workshop in 2020 ° was there and I'm wondering if I (ever) met him. :)

      (There was a time where I thought Erlang was named after Erlangen ...)

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      °) the only in-house/unwired Perl Workshop of 2020 AFAIK! =)