I have a content which is text mixed with json
blablabla  bla bla 
sdf
sdfsdfsdf {
    "glossary": [{
        "title": "example glossary",
        "GlossDiv": {
            "title": "S",
            "GlossList": {
                "GlossEntry": {
                    "ID": "SGML",
                    "SortAs": "SGML",
                    "GlossTerm": "Standard Generalized Markup Language",
                    "Acronym": "SGML",
                    "Abbrev": "ISO 8879:1986",
                    "GlossDef": {
                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
                        "GlossSeeAlso": ["GML", "XML"]
                    },
                    "GlossSee": "markup"
                }
            }
        }
    },
    {
        "val":2
    }]
} dd dfsdfsdf
bla blablablabla
I want get json from the string, so I use this regexp
\{(.|\s)+\}
It gives me (checked it on https://regex101.com/):
- Full match with my correctly found json
- Empty group
I don't understand what causes the empty group to appear
 
    