regex.match with parenthesis
I'm trying out a regex to match urls, and my expression needs to contain parentheses. If I were using PHP's preg_match_all function it would return a multi-dimensional array of matches, and then each match in parenthesis.
Here's my regex:
Now, on a string like this:
I get this array:
Is there anyway to get an array of just the full matches, or even a multi-dimensional array of full matches and parenthesis matches, or is there a better way of approaching this?