<?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[How to extract text with a certain condition with notepad?]]></title><description><![CDATA[<p dir="auto">Hello, I tried to extract and paste in another file a text that has the characters @ @ but I have not succeeded</p>
<p dir="auto">tengo el texto</p>
<p dir="auto">y@17text@mail.com:telephone1<br />
<a href="mailto:y17text@mail.com" rel="nofollow ugc">y17text@mail.com</a>:telephone12<br />
y19@text@mail.com:telephone15<br />
@y31text@mail.com:telephone1345<br />
<a href="mailto:y1wtext@mail.com" rel="nofollow ugc">y1wtext@mail.com</a>:telephone1789<br />
@y15text@mail.com:telephone14567<br />
<a href="mailto:y18text@mail.com" rel="nofollow ugc">y18text@mail.com</a>:telephone12345</p>
<p dir="auto">I need to extract those that have two or more @ paste them into another file</p>
<p dir="auto">y@17text@mail.com:telephone1<br />
y19@text@mail.com:telephone15<br />
@y31text@mail.com:telephone1345<br />
@y15text@mail.com:telephone14567</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16284/how-to-extract-text-with-a-certain-condition-with-notepad</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 02:07:35 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16284.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Sep 2018 15:58:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to extract text with a certain condition with notepad? on Thu, 06 Sep 2018 20:22:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/scott-sumner" aria-label="Profile: Scott-Sumner">@<bdi>Scott-Sumner</bdi></a> said:</p>
<blockquote>
<p dir="auto">Bookmark</p>
</blockquote>
<p dir="auto">thanks you  Scott Sumner</p>
]]></description><link>https://community.notepad-plus-plus.org/post/34689</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34689</guid><dc:creator><![CDATA[ani rodet]]></dc:creator><pubDate>Thu, 06 Sep 2018 20:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to extract text with a certain condition with notepad? on Thu, 06 Sep 2018 17:26:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ani-rodet" aria-label="Profile: ani-rodet">@<bdi>ani-rodet</bdi></a></p>
<p dir="auto">Try this:</p>
<p dir="auto">Invoke <strong>Mark</strong> dialog (<strong>Search</strong> (menu) -&gt; <strong>Mark…</strong>)<br />
<strong>Find what</strong> zone: <code>(?-s)^.*?@.*?@.+</code><br />
<strong>Mark line</strong> checkbox: ticked<br />
<strong>Wrap around</strong> checkbox: ticked<br />
<strong>In selection</strong> checkbox: unticked<br />
<strong>Search mode</strong> selection: <em>Regular expression</em><br />
Action: Press <strong>Find All</strong> button<br />
Next action: <strong>Search</strong> (menu) -&gt; <strong>Bookmark</strong> -&gt; <strong>Copy Bookmarked Lines</strong><br />
Next action: Paste wherever suits you</p>
<p dir="auto">Here’s how the regular expression part of it works:</p>
<p dir="auto"><code>(?-s)^.*?@.*?@.+</code></p>
<ul>
<li>[Assert position at the beginning of a line (at beginning of the string or after a line break character) (carriage return and line feed, form feed)][<em><strong>1</strong></em> ] <code>^</code></li>
<li>[Match any single character that is NOT a line break character (line feed, carriage return, form feed)][<em><strong>2</strong></em> ] <code>.*?</code>
<ul>
<li>[Between zero and unlimited times, as few times as possible, expanding as needed (lazy)][<em><strong>3</strong></em> ] <code>*?</code></li>
</ul>
</li>
<li>[Match the character “@” literally][<em><strong>4</strong></em> ] <code>@</code></li>
<li>[Match any single character that is NOT a line break character (line feed, carriage return, form feed)][<em><strong>2</strong></em> ] <code>.*?</code>
<ul>
<li>[Between zero and unlimited times, as few times as possible, expanding as needed (lazy)][<em><strong>3</strong></em> ] <code>*?</code></li>
</ul>
</li>
<li>[Match the character “@” literally][<em><strong>4</strong></em> ] <code>@</code></li>
<li>[Match any single character that is NOT a line break character (line feed, carriage return, form feed)][<em><strong>2</strong></em> ] <code>.+</code>
<ul>
<li>[Between one and unlimited times, as many times as possible, giving back as needed (greedy)][<em><strong>5</strong></em> ] <code>+</code></li>
</ul>
</li>
</ul>
<p dir="auto">Created with <a href="http://www.regexbuddy.com/" rel="nofollow ugc">RegexBuddy</a></p>
<p dir="auto">[<em><strong>1</strong></em> ]: <a href="http://www.regular-expressions.info/anchors.html" rel="nofollow ugc">http://www.regular-expressions.info/anchors.html</a><br />
[<em><strong>2</strong></em> ]: <a href="http://www.regular-expressions.info/dot.html" rel="nofollow ugc">http://www.regular-expressions.info/dot.html</a><br />
[<em><strong>3</strong></em> ]: <a href="http://www.regular-expressions.info/repeat.html#lazy" rel="nofollow ugc">http://www.regular-expressions.info/repeat.html#lazy</a><br />
[<em><strong>4</strong></em> ]: <a href="http://www.regular-expressions.info/characters.html" rel="nofollow ugc">http://www.regular-expressions.info/characters.html</a><br />
[<em><strong>5</strong></em> ]: <a href="http://www.regular-expressions.info/repeat.html" rel="nofollow ugc">http://www.regular-expressions.info/repeat.html</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/34676</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/34676</guid><dc:creator><![CDATA[Scott Sumner]]></dc:creator><pubDate>Thu, 06 Sep 2018 17:26:17 GMT</pubDate></item></channel></rss>