Top "Contains" questions

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

JQuery string contains check

I need to check whether a string contains another string or not? var str1 = "ABCDEFGHIJKLMNOP"; var str2 = "DEFG"; Which function …

javascript jquery string comparison contains
Java List.contains(Object with field value equal to x)

I want to check whether a List contains an object that has a field with a certain value. Now, I …

java list search contains
How do I use LINQ Contains(string[]) instead of Contains(string)

I got one big question. I got a linq query to put it simply looks like this: from xx in …

c# linq string contains
How to check that an element is in a std::set?

How do you check that an element is in a set? Is there a simpler equivalent of the following code: …

c++ stl set contains
String contains - ignore case

Is it possible to determine if a String str1="ABCDEFGHIJKLMNOP" contains a string pattern strptrn="gHi"? I wanted to know …

java string contains case-insensitive
VB.NET - If string contains "value1" or "value2"

I'm wondering how I can check if a string contains either "value1" or "value2"? I tried this: If strMyString.Contains("…

vb.net string if-statement contains
how to check if List<T> element contains an item with a Particular Property Value

public class PricePublicModel { public PricePublicModel() { } public int PriceGroupID { get; set; } public double Size { get; set; } public double Size2 { get; set; } …

c# list contains
Java, Simplified check if int array contains int

Basically my mate has been saying that I could make my code shorter by using a different way of checking …

java arrays int contains
IF a cell contains a string

How can I assign a value to cells if it's neighbour contains a specific string? For example, fields in column …

excel if-statement contains
jQuery if div contains this text, replace that part of the text

Like the title says, I want to replace a specific part of the text in a div. The structure looks …

jquery text replace contains