title: How to check if a string contains substring with wildcard? like abc*xyz
body: <p>When I parse lines in text file, I want to check if a line contains  <code>abc*xyz</code>, where <code>*</code> is a wildcard. <code>abc*xyz</code> is a user input format.</p>