Skip to content
Snippets Groups Projects
Commit 81bae32a authored by Izzard, Robert Dr (Maths & Physics)'s avatar Izzard, Robert Dr (Maths & Physics)
Browse files

Update README.md

parent 98c8398f
No related branches found
No related tags found
No related merge requests found
...@@ -11,14 +11,14 @@ A Python script to load and filter a JSON file, showing the nested-key structure ...@@ -11,14 +11,14 @@ A Python script to load and filter a JSON file, showing the nested-key structure
The first argument should be the JSON filename. The first argument should be the JSON filename.
Following arguments are optional, and are one or more of: The following filter arguments are optional and are one or more of:
+regex : any key in the path must match the regex (like "grep") - `+regex` : any key in the path must match the regex (like "grep")
-regex : no key in the path can match the regex (like "grep -v") - `-regex` : no key in the path can match the regex (like "grep -v")
$regex : the final key in the path must match the regex (note: you may have to - `$regex` : the final key in the path must match the regex (note: you may have to escape the $ in your terminal)
escape the $ in your terminal) - `^regex` : the first key in the path must match the regex
^regex : the first key in the path must match the regex
`regex` means Regular Expression. While you can use simple strings, these will be interpreted as regular expressions. If you are not familiar with these, you might want to start at https://en.wikipedia.org/wiki/Regular_expression .
Requires various standard Python modules that, if not available, are easily Requires various standard Python modules that, if not available, are easily
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment