Top "Contains" questions

The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.

How do I check if a string contains a specific word?

Consider: $a = 'How are you?'; if ($a contains 'are') echo 'true'; Suppose I have the code above, what is …

php string substring contains string-matching
Does Python have a string 'contains' substring method?

I'm looking for a string.contains or string.indexof method in Python. I want to do: if not somestring.contains("…

python string substring contains
How do I check if string contains substring?

I have a shopping cart that displays product options in a dropdown menu and if they select "yes", I want …

javascript jquery string substring contains
Determine whether an array contains a value

I need to determine if a value exists in an array. I am using the following function: Array.prototype.contains = …

javascript arrays contains
LIKE vs CONTAINS on SQL Server

Which one of the following queries is faster (LIKE vs CONTAINS)? SELECT * FROM table WHERE Column LIKE '%test%'; …

sql-server performance contains sql-like
Case insensitive 'Contains(string)'

Is there a way to make the following return true? string title = "ASTRINGTOTEST"; title.Contains("string"); There doesn't seem to …

c# string contains case-insensitive
Check if a value exists in ArrayList

How can I check if a value that is written in scanner exists in an ArrayList? List<CurrentAccount> …

java arraylist contains
Is there a short contains function for lists?

I see people are using any to gather another list to see if an item exists in a list, but …

python list search collections contains
Check if list contains element that contains a string and get that element

While searching for an answer to this question, I've run into similar ones utilizing LINQ but I haven't been able …

c# .net linq list contains
Check if item is in an array / list

If I've got an array of strings, can I check to see if a string is in the array without …

python arrays contains