You are likely reading this FAQ because you are trying to use regular expressions to work with JSON, and someone wants to explain why this is a bad idea to you. And it is a very bad idea to parse JSON with regular expressions, as you may have already discovered at the cost of hours of frustration and dead-ends. A normal programming language (e.g., Python, JavaScript) is the proper way to work with JSON.
- Python
- Overview: Python is an easy-to-learn language, and its json module makes it easy to work with JSON.
- Plugins: In addition, the PythonScript plugin allows you to run Python scripts inside of Notepad++.
- For example, here is how to parse the current document as JSON, and pretty-print it:
# Npp gives us access to the editor com