search string inside a word in java -


i want search word inside string : example let string "thisisfile.java" , let want search "file.java" or "isfile"

this sql 'like' query unfortunately not getting string database.

please suggest me solution this. thanks

there's variety of ways of achieving , method choose depend on complexity of queries. simple plain symbol/word match string class provides contains method takes single parameter, string search - , returns true if occurs within search string.

bool containsfile = mystring.contains("file"); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -