<?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[Keeping the 2 first digits from an IP?]]></title><description><![CDATA[<p dir="auto">I have this range of IP’s:<br />
19.20.21.22<br />
19.21.22.23<br />
20.150.172.28<br />
20.192.238.24<br />
21.193.128.44<br />
22.193.12.6</p>
<p dir="auto">I want to keep only the 2 first digits and delete duplicates</p>
<p dir="auto">Results:<br />
19<br />
20<br />
21</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22825/keeping-the-2-first-digits-from-an-ip</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 02:45:02 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22825.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Apr 2022 12:47:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Tue, 19 Apr 2022 12:28:16 GMT]]></title><description><![CDATA[<p dir="auto">Note this is for Azure Public IP List,<br />
not for AWS</p>
]]></description><link>https://community.notepad-plus-plus.org/post/76164</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76164</guid><dc:creator><![CDATA[Roger St-Onge]]></dc:creator><pubDate>Tue, 19 Apr 2022 12:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Tue, 19 Apr 2022 12:26:24 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></p>
<p dir="auto">Thanks for helping a Newbie :) With your help I was able to achive my task.</p>
<p dir="auto">Solution to clean up AWS Public IP list<br />
<a href="https://ip-ranges.amazonaws.com/ip-ranges.json" rel="nofollow ugc">https://ip-ranges.amazonaws.com/ip-ranges.json</a></p>
<p dir="auto">Removed all alphabet: \b(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(.(?1)){3}\b</p>
<p dir="auto"><img src="/assets/uploads/files/1650370506303-412be648-63bb-4714-8a80-80083ea65131-image.png" alt="412be648-63bb-4714-8a80-80083ea65131-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then</p>
<p dir="auto">Find: (?-s)^(\d+)..+<br />
Replace: ${1}<br />
Search mode: Regular expression</p>
<p dir="auto">Then</p>
<p dir="auto"><img src="/assets/uploads/files/1650370714746-839e2b87-2c73-4d67-af76-084cab350c77-image.png" alt="839e2b87-2c73-4d67-af76-084cab350c77-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Final Results for first set of IP’s in Microsoft Azure Publip IP List<br />
<img src="/assets/uploads/files/1650371106108-d9f2f80c-8b65-4fd4-8e16-be9cb59863dc-image.png" alt="d9f2f80c-8b65-4fd4-8e16-be9cb59863dc-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/76163</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/76163</guid><dc:creator><![CDATA[Roger St-Onge]]></dc:creator><pubDate>Tue, 19 Apr 2022 12:26:24 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Mon, 11 Apr 2022 11:55:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roger-st-onge" aria-label="Profile: roger-st-onge">@<bdi>roger-st-onge</bdi></a></p>
<p dir="auto">It’s because you misrepresented your data.<br />
What you showed originally started in column 1 (well, as far as anyone could tell).<br />
The <code>^</code> in the expression means start-of-line must occur there.<br />
Experiment with removing that character from the find expression.<br />
Also a good idea to read up on regular expression searching; see this site’s FAQ page.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75936</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75936</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 11 Apr 2022 11:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Mon, 11 Apr 2022 11:44:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roger-st-onge" aria-label="Profile: roger-st-onge">@<bdi>roger-st-onge</bdi></a> Still having issue, not able to make it work<img src="/assets/uploads/files/1649677457928-5c4a0f86-258f-4e2a-a3b0-1b797eb3dd47-image.png" alt="5c4a0f86-258f-4e2a-a3b0-1b797eb3dd47-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/75935</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75935</guid><dc:creator><![CDATA[Roger St-Onge]]></dc:creator><pubDate>Mon, 11 Apr 2022 11:44:21 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Mon, 11 Apr 2022 11:01:35 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>, look like it’s not finding anything…<img src="/assets/uploads/files/1649674887399-376221ff-ce11-4d35-af78-761a01f71c9c-image.png" alt="376221ff-ce11-4d35-af78-761a01f71c9c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/75934</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75934</guid><dc:creator><![CDATA[Roger St-Onge]]></dc:creator><pubDate>Mon, 11 Apr 2022 11:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Sat, 09 Apr 2022 19:23:09 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> ,<br />
Thanks Alan, another NPP capability I wasn’t aware of…but that just means my needs haven’t been expansive enough to seek it out, but I’m getting there. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/75895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75895</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Sat, 09 Apr 2022 19:23:09 GMT</pubDate></item><item><title><![CDATA[Reply to Keeping the 2 first digits from an IP? on Sat, 09 Apr 2022 12:59:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/roger-st-onge" aria-label="Profile: roger-st-onge">@<bdi>roger-st-onge</bdi></a></p>
<p dir="auto">Find: <code>(?-s)^(\d+)\..+</code><br />
Replace: <code>${1}</code><br />
Search mode: Regular expression</p>
<p dir="auto">Follow that with this action:</p>
<p dir="auto"><img src="/assets/uploads/files/1649509115304-76a16a3d-6f38-4677-b8c6-3ecab453a1f5-image.png" alt="76a16a3d-6f38-4677-b8c6-3ecab453a1f5-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/75886</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/75886</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 09 Apr 2022 12:59:04 GMT</pubDate></item></channel></rss>