in reply to Re: Regex help
in thread Regex help
Try something that contains this pattern twice, and you'll immediately see the difference, as inmy($start, $middle, $end) = split /((?:AB)+)/, $string, 2;
Yours would have put just "y" into $end, mine takes the entire rest of the string, "yABz".$string = "xAByABz";
|
|---|