title: How can I check that the NSString ends with the certain character(.jpg)?
body: <p>I have a NSString object which is assigned this ("<a href="http://vspimages.vsp.virginia.gov/images/024937-02.jpg" rel="noreferrer">http://vspimages.vsp.virginia.gov/images/024937-02.jpg</a>"). Can anybody tell me how to check whether the string ends with ".jpg"? </p>