Page 1 of 1

REX Question

Posted: Thu Dec 02, 2010 12:08 pm
by gerry.odea
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>

REX Question

Posted: Thu Dec 02, 2010 12:20 pm
by mark
">>=[^?]+"

REX Question

Posted: Thu Dec 02, 2010 12:22 pm
by mark
Or <urlutil split> or <split "\?">.

REX Question

Posted: Thu Dec 02, 2010 12:30 pm
by gerry.odea
Thank you Mark!