in reply to •Re: A pattern that matches three consecutive copies...
in thread A pattern that matches three consecutive copies...
so this is what I tried to do in my script:/($what){3}/
#!/usr/bin/perl -w use strict; my $what = 'fred|barney'; if($what =~ /($what){3}/){ print "$&"; } else{ print "no match\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: •Re: A pattern that matches three consecutive copies...
by merlyn (Sage) on Jun 09, 2002 at 15:58 UTC | |
by WarrenBullockIII (Beadle) on Jun 09, 2002 at 16:03 UTC | |
by merlyn (Sage) on Jun 09, 2002 at 16:08 UTC | |
by WarrenBullockIII (Beadle) on Jun 09, 2002 at 16:23 UTC | |
by merlyn (Sage) on Jun 09, 2002 at 16:32 UTC |