Top "Contains" questions

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

How to check if a string contains text from an array of substrings in JavaScript?

Pretty straight forward. In javascript, I need to check if a string contains any substrings held in an array.

javascript arrays string substring contains
How to check if a table contains an element in Lua?

Is there a method for checking if a table contains a value ? I have my own (naive) function, but I …

lua set unique contains lua-table
How to use not contains() in xpath?

I have some XML that is structured like this: <whatson> <productions> <production> <category&…

xpath contains
How can I tell if a VARCHAR variable contains a substring?

I thought it was CONTAINS, but that's not working for me. I'm looking to do this: IF CONTAINS(@stringVar, 'thisstring') ... …

sql string contains sql-server-2012
Search for "does-not-contain" on a DataFrame in pandas

I've done some searching and can't figure out how to filter a dataframe by df["col"].str.contains(word), however …

python pandas contains
Java - Opposite of .contains (does not contain)

I have an if statement: if (inventory.contains("bread")) But now I want to check if inventory contains "bread" but …

java contains
How to use regex in XPath "contains" function

I would like to match the following text sometext12345_text using the below regex. I'm using this in one of …

regex xpath selenium-webdriver contains
String contains another two strings

Is it possible to have the contain function find if the string contains 2 words or more? This is what I'm …

c# string contains
.Contains() on a list of custom class objects

I'm trying to use the .Contains() function on a list of custom objects This is the list: List<CartProduct&…

c# list class contains
Check if element is in the list (contains)

I've got a list of elements, say, integers and I want to check if my variable (another integer) is one …

c++ contains