I am new to programming languages. I have a requirement where I have to return a record based on a search string.
For example, take the following three records and a search string of "Cal":
University of California
Pascal Institute
California University
I've tried String.Contains
, but all three are returned. If I use String.StartsWith
, I get only record #3. My requirement is to return #1 and #3 in the result.
Thank you for your help.