<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Copy each line of text to 2nd line and add text before and after]]></title><description><![CDATA[<p dir="auto">Here’s what I need to do.  I have a text file with a list of filenames.</p>
<p dir="auto">example:</p>
<p dir="auto">3wonders.zip<br />
40love.zip<br />
4dwarrio.zip</p>
<p dir="auto">I need to copy each line to a second line and then add text before and after each line.</p>
<p dir="auto">example:</p>
<p dir="auto">mame[“3wonders.zip”].core=mame0139<br />
mame[“3wonders.zip”].emulator=libretro<br />
mame[“40love.zip”].core=mame0139<br />
mame[“40love.zip”].emulator=libretro<br />
mame[“4dwarrio.zip”].core=mame0139<br />
mame[“4dwarrio.zip”].emulator=libretro</p>
<p dir="auto">I’ve found the commands to add the text before and after a single line but I’m lost on if there’s a better way to do this than having to add and edit line by line for the for line of the text file name that was copied from the original line.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24404/copy-each-line-of-text-to-2nd-line-and-add-text-before-and-after</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 10:58:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24404.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Apr 2023 13:28:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Copy each line of text to 2nd line and add text before and after on Sun, 23 Apr 2023 13:42:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thank you so much!  I was searching for that kind of information but I’m pretty new to using Notepad++ and had no idea of what terms, etc. I was looking for.  Thank you for the very useful information.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85913</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85913</guid><dc:creator><![CDATA[Jake Stahl]]></dc:creator><pubDate>Sun, 23 Apr 2023 13:42:49 GMT</pubDate></item><item><title><![CDATA[Reply to Copy each line of text to 2nd line and add text before and after on Sun, 23 Apr 2023 13:34:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jake-stahl" aria-label="Profile: Jake-Stahl">@<bdi>Jake-Stahl</bdi></a></p>
<p dir="auto">Find: <code>(?-s)^(.+)$</code><br />
Replace: <code>mame["$0"].core=mame0139\r\nmame["$0"].emulator=libretro</code><br />
Search mode: Regular expression</p>
<p dir="auto">Learn more about how to do this kind of thing yourself, <a href="https://community.notepad-plus-plus.org/topic/15765/faq-desk-where-to-find-regular-expressions-regex-documentation">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85912</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85912</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 23 Apr 2023 13:34:52 GMT</pubDate></item></channel></rss>