@results = $string_to_search =~ /(pa+rt)/ig; [download]
Dave.
In reply to Re: Capturing string matched by regex by dave_the_m in thread Capturing string matched by regex by tunafish