in reply to Nonrepeating characters in an RE
I'm possibly missing something since all the other responses are so complex, but here goes anyway:
my @test = qw/abc aab abb aba/; for (@test) { say if not /(.).*?\1/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Nonrepeating characters in an RE
by AnomalousMonk (Archbishop) on Aug 17, 2022 at 13:51 UTC | |
by Anonymous Monk on Aug 17, 2022 at 14:18 UTC | |
by LanX (Saint) on Aug 17, 2022 at 14:52 UTC | |
by AnomalousMonk (Archbishop) on Aug 17, 2022 at 15:29 UTC |