in reply to How to capture quantified repeats?

This should be trivial

T'is trivial if you use the right tool:

$ham = "spam\tspam\tspam\t\tyam\tclam";; @jam = split /\t+/, $ham;; print "@jam";; spam spam spam yam clam

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.