in reply to count repeatation

"tell me the regex for that"

This site isn't a code writing service. You've asked regex questions before and been advised to read perlre. Have you done so? Have you written any code for this problem yourself? If so what is it and what output did it give?

Martin

Replies are listed 'Best First'.
Re^2: count repeatation
by saranperl (Initiate) on Aug 19, 2009 at 11:49 UTC
    $string ='ab23cdefgXX(3A5)XXhijkl23mnXX(3)XXopq432rsXX(450b)XXtuv'; $count=0; while($string =~ m/XX/g) { $count++; } print $count;;
    I wrote it . I have given program above . i want to know the repeatation number without using while loop
        thanks martin..