Created
July 1, 2020 06:15
-
-
Save oscarandreu/040fec92ba7e423cd8028c26e9172e6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only gets the <loc> lines from: | |
```xml | |
<url> | |
<loc>https://asdf.net/55/s.i.v.-search</loc> | |
<lastmod>2020-06-15</lastmod> | |
<changefreq>weekly</changefreq> | |
<priority>0.5</priority> | |
</url> | |
<url> | |
<loc>https://asdf.net/catalogue/64/catalogue-pro</loc> | |
<lastmod>2020-04-20</lastmod> | |
<changefreq>weekly</changefreq> | |
<priority>0.5</priority> | |
</url> | |
<url> | |
``` | |
Regex: | |
^((?!loc).)*$\n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment