in reply to Capturing string matched by regex

@results = $string_to_search =~ /(pa+rt)/ig;

Dave.

Replies are listed 'Best First'.
Re^2: Capturing string matched by regex
by tunafish (Beadle) on Feb 17, 2012 at 05:23 UTC

    I feel a little dumb for not figuring that out on my own :)

    Thanks Dave and AnomalousMonk (the parentheses were indeed not needed).