given an obfuscated file like
...
<A>
<name>ns1</name>
<ORIGIN>example.com</ORIGIN>
<class>IN</class>
<host>127.0.0.1</host>
<ttl>172800</ttl>
</A>
<A>
<name>ns2</name>
<ORIGIN>example.com</ORIGIN>
<class>IN</class>
<host>127.0.0.2</host>
<ttl>172800</ttl>
</A>
<NS>
<name>example</name>
<ORIGIN>com</ORIGIN>
<class>IN</class>
<host>ns.example.COM</host>
<ttl>172800</ttl>
</NS>
...
I am trying to use the following regex in Sublime Text 4 on a Silicone Mac to get the A records and leave the NS record alone
(?s)\<A\>.*?\<\/A\>
does not work.
When plugging same into https://regex101.com/r/LHWvhy/1 it correctly finds the two A records.
What am I doing wrong?