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"; }
In reply to Re: •Re: A pattern that matches three consecutive copies...
by WarrenBullockIII
in thread A pattern that matches three consecutive copies...
by WarrenBullockIII
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |