I need to get the jsmith
part out of the following elements alt attribute
<img src="http://www.test.com" class="img-thumbnail" alt="John Smith (jsmith)">
So I'm running this
$('.img-thumbnail').attr('alt');
which gives me
"John Smith (jsmith)"
I need to get the 'jsmith' part out
any ideas?