I am trying to write a regex which match the first tag in line with string "Apple"
Example:
<div class="tn-atom" field="tn_text_1584898828640" target="_blank">Apple</div>
I need to select this tag:
<div class="tn-atom" field="tn_text_1584898828640" target="_blank">
I can select all lines with regex ^(?!.*(Apple)).*$
But how can I select only the first tag?