$a="batcatratdeercatdogmousepalmcocoacatdoll monkeycatsusandollypollyc +atpomkelly";; print $-[2] - $+[1] while $a =~ m[(cat)(?=.+?(cat))]g;; 7 17 11 15
In reply to Re: How can I count characters between two same substrings in a string where the substring is repeated more than 5 times?
by BrowserUk
in thread How can I count characters between two same substrings in a string where the substring is repeated more than 5 times?
by supriyoch_2008
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |