<?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[Help with Basic Regular Expression Search]]></title><description><![CDATA[<p dir="auto">OK, folks, I’ve never used regular expressions before and it’s high time I started.</p>
<p dir="auto">I’m trying to edit a large txt file that has text at the end of many lines that I want to completely remove.  I was able to build a search expression to remove text (actually replace it with other text) at the beginning of the lines, but, removing the ending text is proving to be a bit more difficult.  I’m sure there’s a way to do it via regexp but I’m not seeing it.</p>
<p dir="auto">Each of the lines I want to edit has the same text in the middle of the line.  I want to remove that text and the rest of the text all the way to the end of the line, preserving the CR/LF.</p>
<p dir="auto">Any suggestions?</p>
<p dir="auto">Thanks in advance!</p>
<p dir="auto">Colby</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/12838/help-with-basic-regular-expression-search</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 18:53:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/12838.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Dec 2016 14:37:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help with Basic Regular Expression Search on Fri, 02 Dec 2016 16:29:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marshall-medoff" aria-label="Profile: Marshall-Medoff">@<bdi>Marshall-Medoff</bdi></a></p>
<blockquote>
<p dir="auto">does this site have the equivalent of Karma or gold?</p>
</blockquote>
<p dir="auto">I’m not really sure how the reddit system works. The reputation here doesn’t really have much value, I think mostly just to weed out spam accounts.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19641</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19641</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 02 Dec 2016 16:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Basic Regular Expression Search on Fri, 02 Dec 2016 16:09:33 GMT]]></title><description><![CDATA[<p dir="auto">So Dail, that worked!  Thank you!</p>
<p dir="auto">In the best Reddit practice, I upvoted your response, but, does this site have the equivalent of Karma or gold?</p>
<p dir="auto">Best to you and yours!</p>
<p dir="auto">Colby</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19639</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19639</guid><dc:creator><![CDATA[Marshall Medoff]]></dc:creator><pubDate>Fri, 02 Dec 2016 16:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Basic Regular Expression Search on Fri, 02 Dec 2016 15:45:04 GMT]]></title><description><![CDATA[<p dir="auto">This is actually much more clear than most posts asking for regex help.</p>
<p dir="auto">You can use a regex like: <code>some text.*?$</code></p>
<p dir="auto">The important part here is the <code>.*?$</code> at the end which will match the text after “some text” all the way right up until it reaches the end of the line (which is what the <code>$</code> represents).</p>
<p dir="auto">Keep in mind that if your “some text” has special characters in it such as a period, parenthesis, etc then you will need to escape the character.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19638</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19638</guid><dc:creator><![CDATA[dail]]></dc:creator><pubDate>Fri, 02 Dec 2016 15:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to Help with Basic Regular Expression Search on Fri, 02 Dec 2016 15:29:25 GMT]]></title><description><![CDATA[<p dir="auto">You should describe your request more clearly, better give some examples. Then we’ll be easier to help you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/19636</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/19636</guid><dc:creator><![CDATA[古旮]]></dc:creator><pubDate>Fri, 02 Dec 2016 15:29:25 GMT</pubDate></item></channel></rss>