Page 1 of 1

rex xor, or

Posted: Fri Oct 15, 2010 5:50 am
by roboto
test url: http://askville.amazon.com/ForumThread. ... pLast=true

<rex row '>>class\="=msg?msg_starter?"=' $tempVar>
<send $ret>
</rex>

Results are 3 msg tags, when I replace words like
>>class\="=msg_starter?msg?"= vortex finds 5 results

Can someone explain why is this happening?
Is there XOR or OR operator in rex?
If I want to find msg or msg_starter, or exclusively msg or msg_starter?

rex xor, or

Posted: Fri Oct 15, 2010 9:11 am
by John
For your case it looks like:

>>class\="msg=_starter?"=

should work (i.e. the _starter after msg is optional.

The way to do an OR would be multiple REX expressions, e.g.

<$searchfor='>>class\="msg"=' '>>class\="msg_starter"='>

<rex $searchfor $tempVar>

rex xor, or

Posted: Wed Oct 20, 2010 11:09 am
by roboto
Thanks. That is it.