我需要使用正则表达式在记事本++中删除变量字符串前后的所有内容

I need to use remove every thing before and after a variable string in notepad++ using regex

希望有人能帮我解决这个问题。我有一个文本文件,其中包含多行 XML 格式的 RSS URL 列表。文本文件如下所示:

<outline type="rss" text="Tech Viral" title="Tech Viral" xmlUrl="http://feeds.feedburner.com/TechViral" htmlUrl="https://techviral.net"/>
<outline type="rss" text="The Verge" title="The Verge" xmlUrl="http://www.theverge.com/rss/full.xml" htmlUrl="https://www.theverge.com/"/>
<outline type="rss" text="Joystiq" title="Joystiq" xmlUrl="http://www.joystiq.com/rss.xml" htmlUrl="https://www.engadget.com/rss.xml"/>
<outline type="rss" text="BGR" title="BGR" xmlUrl="http://www.boygeniusreport.com/feed/" htmlUrl="http://bgr.com"/>

我想摆脱之前的一切:

xmlUrl="

以及之后的所有内容:

"

因此最终输出将如下所示:

http://feeds.feedburner.com/TechViral
http://www.theverge.com/rss/full.xml
http://www.joystiq.com/rss.xml
http://www.boygeniusreport.com/feed/

基本上,我只希望文件中的提要 URL 位于左边一行。有人可以帮忙吗?我在 Windows 上使用 Notepad++,但如果有其他软件比正则表达式更容易完成此操作,我会采纳任何有助于完成工作的建议。

谢谢大家!

使用 look behid (?<=):

(?<=xmlUrl=")[^"]+

将匹配任何后跟 xmlUrl=" 直到下一个引号 ".

不需要花哨

找到(?m)^.*xmlUrl="([^"]*)".*
替换