FlyerTalk Forums - View Single Post - ITA Software Matrix Airfare Search Consolidated Information and Help Thread
Old Nov 15, 2013, 6:48 am
  #411  
ITA Hacker
Company Representative - ITA Software
 
Join Date: Feb 2006
Location: Cambridge, MA
Posts: 362
Originally Posted by discoseal
How do you restrict certain codeshares from showing up in a search?

Ex.
ORD->HEL

I want a flight not marketed by AA on any leg. In addition, I'd like at least one leg on AY. How would I code this?
If I understood what you're asking for, then I think you want:

~AA* AY ~AA*

which means "zero or more flights marketed by anyone other than AA, followed by one flight marketed by AY, followed by zero or more flights marketed by anyone other than AA". Basically, it says that if you have any flights before or after the AY flight, they can't be marketed by AA.
ITA Hacker is offline