Regex – Extract range of XYZ coordinates

Can that be done using regex?

Not if you value your sanity. See this FAQ for some reasons why.

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.

I have a huge json file (10 GB)

Even if you could use regular expressions to do this, I VERY strongly urge you abandon all hope of doing these edits inside any text editor, including Notepad++. I doubt Notepad++ could even open the file without crashing due to running out of memory.

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++.

EDIT: If your file was much smaller (like maybe 10 MB instead of 10 GB), I think JsonTools 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 literally impossible for JsonTools to parse a file larger than about 2 GB, because it uses 32-bit signed integers to index into strings.

Read more here: Source link