title: regex for search json in log
body: <p>I have to capture the data in the SD located in logs (RFC5424). I created a regex for this. Unfortunately, there are data in json format and set '[' and ']'. Can someone help me make a regex that correctly captures this data?
  Example:</p>
  
  <pre><code>import re
  text = """[exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"][examplePriority@32473 class="{"fruits": [{ "kiwis": 3,"mangos": 4,"apple": null},{ "bag": true }],"vegetables": {"patatoes": "amandine","peas": false},"meat": ["fish","chicken","beef"]}"]"""
  regex = """\[(\S+@[^\]]+)\]""" 
  matchAllSD = re.findall(regex, text)
  for SD in matchAllSD:
      print SD
  </code></pre>
  
  <p>$python <code>main.py</code></p>
  
  <pre><code>exampleSDID@32473 iut="3" eventSource="Application" eventID="1011"
  
  examplePriority@32473 class="{"fruits": [{ "kiwis": 3,"mangos":
  4,"apple": null},{ "bag": true }
  </code></pre>
  
  <p>Thanks!</p>