in reply to Re: Need help with regex/strategyin thread Need help with regex/strategy
You are right; but that's easily fixed by generalizing the first step a bit: split on either question mark or equality sign, (split /[?=]/, $url, 2)[0]