wash sale rule

would appreciate any and all your answers to my question regarding the wash sale rule, as it pertains to stock/index options.

i know that if i bought, sold, then bought back again XYZ stock within 30 days, a wash sale occured. my question is, would it be a wash sale if i had bought, sold, then bought back the same underlying security or index, but each had different strike prices and expirations?

Your losses aren't recognized for tax purposes if the wash sale rules apply. Instead, the loss is added to your new investment to form your new basis. This continues forward until you either have a net gain or the wash sale rule doesn't apply.