The EU regulation applies if:
The country of departure is the member of EU whatever is the operating airline
The flight is operated by an airline registered in EU (as well as Iceland, Norway or Switzerland)