java string.getIndex correct index ignoring punctuation
<p>If I had a string like this one that has punctuation like <code>,, ?, ;,</code>, what if I wanted to use <code>string.indexOf();</code> to search for a string such as "<code>like</code>", and get back the index? </p>

<p>If I remove all punctuation I could search it but because of the punctuation earlier it would give me the wrong index in the string. Is there a built-in way in Java to do such a thing? I have a workaround in mind I am going to test but won't bother if there's a proper way. </p>
