Create an Array with the Submatch of RGX Exact


using JSON Pointer..

ASTER::ACTION::JSON::Create an Array, Submatch of Regex Exact Match

Export submatches obtained from exact match search in regular expressions to an array.

In the absence of preloaded JSON data, read more…

If there is no pre-loaded data, create a new JSON Object at the root and add an array.

In that case, specify the JSON Pointer directly under the root. The following description is possible:

"/NewArray"

The following description will result in an error:

"/test/NewArray"

/NewArray is known to be an array, but /test is a data structure, so it cannot be inferred whether it is an array or an object.


Parameter

JSON Pointer: Specify the insertion position of the array-type data.

If the key name is duplicated, it will be overwritten.

Create an array under the root with the key name "test", example of JSON Pointer:

"/test"

Result of export to JSON Array

If the submatch results are, "AAA,BB,CDE", "AAA", "BB", "CDE":

{
    "test":[
        "AAA,BB,CDE",
        "AAA",
        "BB",
        "CDE"
        ]
}

Notes

Regular expression exact match searches and partial match searches submatches are stored in separate areas.