Capture contents inside curly braces
<p>So, as part of my application, I need it to read data from a text file, and get elements between curly brackets.</p>
<p>e.g:</p>
<pre><code>Server_1 {

    /directory1 /directory2

}

Server_2 {

    /directory1

    /directory2

}
</code></pre>
<p>Then something like, if <code>Server == Server_1</code>, print the directories.</p>