Extract json data from string using regex
<p>I have data string like below:</p>

<pre><code>....
data=[{"CaseNo":1863,"CaseNumber":"RD14051315","imageFormat":"jpeg","ShiftID":241,"City":"Riyadh","ImageTypeID":2,"userId":20}]
--5Qf7xJyP8snivHqYCPKMDJS-ZG0qde4OqIyIG
Content-Disposition: form-data
.....
</code></pre>

<p>I want to fetch json data from above string. How can I use regex to find that part of string? I tried with finding indexOf("data=[") and indexOf("}]") but its not working fine and proper way to do.</p>
