Re: PCRE sub-expressions matching



> Notice that all subexpressions are saved twice in the array. Can this
> be avoided?

Without trying it (never knew you could name them <sheepish grin>) I
would assume you could use (?:P<host>

On the other hand, however, does it really matter? Even if you are
looping, just do a quick test to see if the key is numeric

Also, the url_parse function does what you are looking for, and will do
it faster.

.