rex xor, or

Post Reply
roboto
Posts: 14
Joined: Sat Jul 31, 2010 11:45 am

rex xor, or

Post 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?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

rex xor, or

Post 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>
John Turnbull
Thunderstone Software
roboto
Posts: 14
Joined: Sat Jul 31, 2010 11:45 am

rex xor, or

Post by roboto »

Thanks. That is it.
Post Reply