<?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[Delet specific part of the line]]></title><description><![CDATA[<p dir="auto">Hi,<br />
At first, I apologize for my terrible English.<br />
I have this problem: I would like to delete specific parts of the lines in the big text document. But there are so many options for what the text can look like. For example, I have about 500 lines:</p>
<pre><code>PoznamkaSlov!Prvé sväté prijímanie dňa: bez záznamu v, obci: Dolná Súča,
PoznamkaSlov!Prvé sväté prijímanie dňa: 08.06.1969 v obci: Trenčín,
PoznamkaSlov!Prvé sväté prijímanie dňa: 01.09.1999 v obci: Trenčín,

</code></pre>
<p dir="auto">and I need:</p>
<pre><code>PoznamkaSlov! Dolná Súča,
PoznamkaSlov! Trenčín,
PoznamkaSlov! Trenčín,
</code></pre>
<p dir="auto">O I have other 400 lines like:</p>
<pre><code>PoznamkaSlov!Birmovaný dňa: 25.06.1972, Zapísané na RKFÚ: Soblahov
PoznamkaSlov!Birmovaný dňa: 21.09.1973, Zapísané na RKFÚ: Hlohovec
PoznamkaSlov!Birmovaný dňa: 17.4.2010, Zapísané na RKFÚ: Trenčín
</code></pre>
<p dir="auto">and I need:</p>
<pre><code>PoznamkaSlov!Soblahov
PoznamkaSlov!Hlohovec
PoznamkaSlov!Trenčín
</code></pre>
<p dir="auto">Is there an easy way to do it? I was trying to search through google and read many discussions but I didn’t find it anywhere. I try to do it trought instructions from this web: <a href="https://stackoverflow.com/questions/31073512/how-to-delete-a-part-of-line-that-has-a-specific-beginning-and-ending-on-notepad" rel="nofollow ugc">https://stackoverflow.com/questions/31073512/how-to-delete-a-part-of-line-that-has-a-specific-beginning-and-ending-on-notepad</a>, but it work only with their example, and I don´t know how to change the searching…<br />
When I copy my text in “new document” it marks more lines:<br />
<img src="/assets/uploads/files/1628590259696-picture-1.png" alt="Picture 1.png" class=" img-fluid img-markdown" /><br />
and when I try it, in my document, it no work… and writes: “Serch failed, Unexpected exception while searching”:<br />
<img src="/assets/uploads/files/1628590289218-picture-2.png" alt="Picture 2.png" class=" img-fluid img-markdown" /><br />
I don’t know if it’s even possible, but if you know some options, please help.<br />
Thank you in advance for your answers.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21639/delet-specific-part-of-the-line</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 01:14:06 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21639.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Aug 2021 10:35:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Delet specific part of the line on Sat, 14 Aug 2021 13:21:29 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much. Your answer helps me understand how these shortcuts work and solved my problem.</p>
<p dir="auto">Thanks for help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/68863</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68863</guid><dc:creator><![CDATA[martin sedlacek]]></dc:creator><pubDate>Sat, 14 Aug 2021 13:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to Delet specific part of the line on Tue, 10 Aug 2021 11:29:07 GMT]]></title><description><![CDATA[<p dir="auto">Using regular expressions is all about finding patterns.<br />
If you can express your needs with a pattern, it is almost always possible to find a regex that does what you need.<br />
Based on your explanation, I assume the pattern is the following.</p>
<p dir="auto">Each line starts with a word followed by an exclamation point, then any text, and ends with a colon followed by a space, some words followed by a comma. If this is the case, then the following should do what you want. If it doesn’t, try explaining the pattern you want.</p>
<p dir="auto">find: <code>^(\w+!).+: (.+),</code><br />
replace: <code>\1 \2</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/68750</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/68750</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Tue, 10 Aug 2021 11:29:07 GMT</pubDate></item></channel></rss>