Find match in callback string - jQuery
<p>I want to be able to find an exact match in a callback string. Let's say I want to find <code>c</code> in the callback string <code>a,b,c,d,e,</code>. How do I find <code>c</code> in the callback string so I can check if it exists? Example code...</p>

<p><strong>This is the string from the callback</strong></p>

<pre><code>a,b,c,d,e,
</code></pre>

<p>This is to validate if string contains the letter <code>c</code></p>

<pre><code>$.ajax({
    type: "POST",
    url: "file.php",
    data: Data,
    success: function(myhtml){
        // Find exact word that contains 'c'
        var string = $(""+myhtml+":contains('c')");
        if (string) {
            // Do Stuff
        }
    }
});
</code></pre>
