in reply to Re^2: Nonrepeating characters in an RE
in thread Nonrepeating characters in an RE
Well, in that case...
my @test = qw/xyzabcxxx xyzaabxxx xyzabbxxx xyzabaxxx/; for (@test) { # only check for 'abc' say if not /([abc]).*?\1/; }
Still quite simple, isn't it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Nonrepeating characters in an RE
by LanX (Saint) on Aug 17, 2022 at 14:52 UTC | |
by AnomalousMonk (Archbishop) on Aug 17, 2022 at 15:29 UTC |