<?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[append data before and after text]]></title><description><![CDATA[<p dir="auto">hi eveybody,<br />
i have m3u8 file like this:</p>
<pre><code>#EXTINF:5.005,
seg-1-v1-a1.ts
#EXTINF:5.000,
seg-2-v1-a1.ts
#EXTINF:5.000,
seg-3-v1-a1.ts
#EXTINF:5.000,
seg-4-v1-a1.ts
#EXTINF:5.000,
seg-5-v1-a1.ts
</code></pre>
<p dir="auto">and i need to add like this:</p>
<pre><code>#EXTINF:5.005,
https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-1-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD
#EXTINF:5.000,
https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-2-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD
#EXTINF:5.000,
https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-3-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD
#EXTINF:5.000,
https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-4-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD
#EXTINF:5.000,
https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-5-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD
</code></pre>
<p dir="auto">i have regex for this, but my issue is with incremental number to each segment<br />
my regex is:<br />
find: <code>(?-s)^(#EXTINF:.*\R)(.+)</code><br />
replace: <code>$1https://psv157-1.344322vg.en/videos/-211737703/556755643/720/seg-\d+-v1-a1.ts?extra=N87rklN9X234fdgfdgeeWSD$2</code></p>
<p dir="auto">but this one does not work fine for incremental segments numbers</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24678/append-data-before-and-after-text</link><generator>RSS for Node</generator><lastBuildDate>Sun, 18 Oct 2026 04:14:27 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24678.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 07 Jul 2023 12:55:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to append data before and after text on Fri, 07 Jul 2023 20:17:10 GMT]]></title><description><![CDATA[<p dir="auto">yes, i know ffmpeg but already tried for strange site and does not work<br />
because from m3u8 to this site only segments are present but missing the full link (first) and token at the end (see my first post above), so ffmpeg don’t have link for its download</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87696</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87696</guid><dc:creator><![CDATA[namx3249]]></dc:creator><pubDate>Fri, 07 Jul 2023 20:17:10 GMT</pubDate></item><item><title><![CDATA[Reply to append data before and after text on Fri, 07 Jul 2023 16:45:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/namx3249" aria-label="Profile: namx3249">@<bdi>namx3249</bdi></a> FYI, ffmpeg can read .m3u8 files directly.</p>
<pre><code>ffmpeg -i https://assets.afcdn.com/video49/20210722/v_645516.m3u8 -codec copy v_645516.mp4
</code></pre>
<p dir="auto">Example 30 second clip about mixing up a cool drink. 16.3 MB.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87695</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87695</guid><dc:creator><![CDATA[mpheath]]></dc:creator><pubDate>Fri, 07 Jul 2023 16:45:16 GMT</pubDate></item><item><title><![CDATA[Reply to append data before and after text on Fri, 07 Jul 2023 15:39:51 GMT]]></title><description><![CDATA[<p dir="auto">oh yes, you’re right (as usual)</p>
<p dir="auto">thanks you for the tip! all the best</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87690</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87690</guid><dc:creator><![CDATA[namx3249]]></dc:creator><pubDate>Fri, 07 Jul 2023 15:39:51 GMT</pubDate></item><item><title><![CDATA[Reply to append data before and after text on Fri, 07 Jul 2023 13:06:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/namx3249" aria-label="Profile: namx3249">@<bdi>namx3249</bdi></a></p>
<p dir="auto">I think you’re overcomplicating it (or your mis-stating your problem).</p>
<p dir="auto">Try this for the replace part:</p>
<p dir="auto"><code>$1https://psv157-1.344322vg.en/videos/-211737703/556755643/720/$2?extra=N87rklN9X234fdgfdgeeWSD</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/87685</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87685</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 07 Jul 2023 13:06:12 GMT</pubDate></item></channel></rss>