I know that with the rex expression below I can get everything after the "?". But how do I write the rex to get everything before the "?". I've tried everything and can't seem to figure it. Please let me know. Thanks.
<$url="http://www.amazon.com?q=thunderstone">
<rex "[^?]+>>=" $url><$url=$ret>
<$url="http://www.amazon.com?q=thunderstone">
<rex "[^?]+>>=" $url><$url=$ret>