How to modify signature to NOT fire if there is additional unique content

Hi everybody,

I am new here and also new to Suricata and I need help. I have rule which fires when it sees:
content:“text1” followed by content:“text2” with distance:0
I need to modify the rule in modify.conf in such a way, that if above is true and there is third content:“text3”, then do not fire alert.

Can it be done? How? Thanks in advance for suggestions.


I forgot to mention that content:“text3” will always be between original two contens from rule.