search string value with wild card in another string java : <p>Suppose I have string value</p>

<pre><code>String strValue1 = "This is the 3TB value"; 
String strValue2 = "3TB is the value"; 
String strValue3 = "The value is 3TB";
</code></pre>

<p>No when the user search for <code>3TB*</code> then it should match with the strValue2 same like for when user search for <code>*3TB*</code> then it should match with strValue1 and for <code>*3TB</code> it should match with strValue3</p>

<p>I tried with so many examples but no luck. Is there any wildcard search for string? I can't use any external libraries</p>
