recentpopularlog in

therobyouknow : repeat   4

Re: Regexp multiple match
my $s = "batcatbetnetbitfit";

my $p = "b.t";

my @matches = $s =~ /$p/g;
g is the key.
Put the regex in brackers () inside the // and use $1..$n to access the result from each bracket.
regex  multiple  match  perl  several  duplicate  repeat  pattern  occurence  programming  howto  work  computing 
november 2009 by therobyouknow

Copy this bookmark:

to read