Regular expression to match simple brackets (C#)
<p>I would like to know a regex to detect the following (for C# specifically):</p>

<p>Whether a string ends with a text inside simple brackets. For example:</p>

<p>Some matches:</p>

<pre><code>this is a string (dsdfgfg)
this is a (string (123456)
</code></pre>

<p>Here is some sample code that detect whether the string ends with a simple bracket.</p>

<pre><code>static void Main(string[] args)
{
    const string s = "this is a sentence (367662288)";
    var result = Regex.IsMatch(s, @"\)$");
    Console.WriteLine(result); // true
}
</code></pre>

<p>Some non matches:</p>

<pre><code>this is a string (fdf
this is a string (dsdfgfg) temp
this is a string (dsdfgfg))
</code></pre>

<p>By the way space is allowed after the closing simple bracket but no other character.</p>

<p>Thanks</p>