<?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[Regex - Extract range of XYZ coordinates]]></title><description><![CDATA[<p dir="auto">I have almost no regex knowledge and wouldn’t even know how to approach my problem. I’m not even sure if what I’m trying to do is possible at all… if it is, I’d really appreciate any pointers!</p>
<p dir="auto">I have a huge json file (10 GB) containing 3D coordinates in this format:<br />
“coords”:{“x”:-26997.03125,“y”:-48.75,“z”:53262.78125}</p>
<p dir="auto">Now, what I’d like to do is extract all entries within a range of X, Y and Z. Say, everything between -20 and +20 for each axis. As you can see in the example, the coordinates are usually different in length.</p>
<p dir="auto">Can that be done using regex?<br />
Cheers</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/25913/regex-extract-range-of-xyz-coordinates</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 00:41:29 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/25913.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Jun 2024 12:44:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Regex - Extract range of XYZ coordinates on Tue, 02 Jul 2024 19:45:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/26710">@Mark-Olson</a> Thanks for your response, appreciate it! I’ll look into other options then. I can actually open the file in Notepad++ but it sure takes a while to load.</p>
<p dir="auto">Anyway, thanks again!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95648</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95648</guid><dc:creator><![CDATA[DrBubbles]]></dc:creator><pubDate>Tue, 02 Jul 2024 19:45:56 GMT</pubDate></item><item><title><![CDATA[Reply to Regex - Extract range of XYZ coordinates on Sun, 30 Jun 2024 19:32:00 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Can that be done using regex?</p>
</blockquote>
<p dir="auto">Not if you value your sanity. See <a href="https://community.notepad-plus-plus.org/topic/25304/faq-parsing-and-editing-json-with-regex-is-a-bad-idea/2">this FAQ</a> for some reasons why.</p>
<p dir="auto">One additional reason that the FAQ doesn’t mention is that regular expressions don’t let you do math like selecting all numbers between -20 and 20.</p>
<blockquote>
<p dir="auto">I have a huge json file (10 GB)</p>
</blockquote>
<p dir="auto">Even if you <em>could</em> use regular expressions to do this, I <strong>VERY strongly</strong> urge you abandon all hope of doing these edits inside <em>any</em> text editor, including Notepad++. I doubt Notepad++ could even open the file without crashing due to running out of memory.</p>
<p dir="auto">Your best bet is probably to use some tool that reads JSON in a stream rather than loading it all into memory at once, and this is a problem for a programming language, not for Notepad++.</p>
<p dir="auto"><strong>EDIT</strong>: If your file was <em>much smaller</em> (like maybe 10 <strong>MB</strong> instead of 10 <strong>GB</strong>), I think <a href="https://github.com/molsonkiko/JsonToolsNppPlugin" rel="nofollow ugc">JsonTools</a> would be a reasonable solution. But I can’t recommend JsonTools for any file larger than 50 MB, even if you could technically use it for larger files than that. Also, it is <em>literally impossible</em> for JsonTools to parse a file larger than about 2 GB, because it uses 32-bit signed integers to index into strings.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/95620</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/95620</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sun, 30 Jun 2024 19:32:00 GMT</pubDate></item></channel></rss>