Using regular expressions for search
I currently have a search in my program that simply uses .equalsIgnoreCase, which means that the user must type the exact string.
So basically I want to make it so that the results for 'ink loyd' will include 'Pink Floyd'. I have looked into regular expressions before but I can't really remember enough to know if they are what I want to use. So what I was thinking was that I could split all the search terms. Then with each one, add wildcards on either side of the string when I parse it into equalsIgnoreCase. Then obviously each one would have to be true for that element to be shown.
Or is there an even easier way?