Skip to main content

Questions tagged [contains]

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

-1 votes
0 answers
27 views

How to see if arraylist of a class contains a specific value [duplicate]

I am working on a java project, I have an ArrayList of a custom class with two variables (a boolean and char) I need to check if it contains a specific char. How do I get it to check the char of it. ...
Arceus Insanity's user avatar
0 votes
1 answer
45 views

Julia: Easiest and efficient way to check if each element of a vector is in another list? .∈ doesn't seem to work

In Julia, assuming I have a vector and a list of candidates: x = [1, 2, 3, 4, 5] targetlist = [1, 2] I would like to iteratively check for each element of the vector if it is contained in the target ...
Dominique Makowski's user avatar
0 votes
0 answers
19 views

RegEx - String contains specific verbiage [duplicate]

I am new to RegEx, but I am trying to setup a process that sets a designated 'Role' based on an employee's title. For instance, I have a list of key phrases that point to the user having a role of '...
J J's user avatar
  • 11
-1 votes
0 answers
17 views

How to control behavior in a $_POST[""] form when a text field contains "https://"

I need to exit form validating code if the field "longtxt" contains "https://" I don't want to allow send hyperlinks if($_POST["name"] == "" || $_POST["...
Firststeps's user avatar
-1 votes
1 answer
61 views

LINQ query where clause in list

I am trying to limit the data returned via a repository using the where clause based on a list of values. I have a PurchaseOrders entity where I want to return all purchase orders that have an ...
michael's user avatar
  • 35
0 votes
1 answer
37 views

YQ - how to filter an array by field value if matching at least one element in a list

Specifically (https://github.com/mikefarah/yq) 4.35+ I have a comma-separated string of terms and I want to filter down a list if a field value is one of those terms. Ex) Given the following input: - ...
jaundiced's user avatar
0 votes
1 answer
33 views

Why does path.contains(point) return seemingly inconsistent results? What am I missing?

My goal is to check if a point is inside a region. The code below illustrates a sample with the region defined with an Envelope struct. Sample points along the border, inside and outside of the region ...
matyasl's user avatar
  • 473
0 votes
2 answers
101 views

string.contains - no overload for contains takes 2 arguments

I'm trying to use the ignore case option for Contains, and I get this error: CS1501 No overload for method 'Contains' takes 2 arguments This is the code line: item.buildMach.Contains("co.net&...
Michele's user avatar
  • 3,797
2 votes
1 answer
61 views

StringComparison and Contains Usage in C #

I'm making an .Net Maui app where it takes photo of a plant/flower and then send it to PlantNet API and it returns a 'scientific name', I then compare this 'scientific name' into my database of plant/...
Chris Angeles's user avatar
0 votes
0 answers
25 views

How to build If condition comparing metadata output against a variable containing multiple values

sorry newbie here. I have a variable ('small_list') with default value [ 'A', 'B', 'D']. I have a Get Metadata that will get foldernames from a container (A,B,C,D,E,F). Using a ForEach to loop round ...
user22538275's user avatar
1 vote
1 answer
35 views

find if filename contains a certain (article number) string

I am currently uploading images directly to wordpress. The file names of the images also contain the article number in the form arm-1001-01.jpg arm-1001-02.jpg arm-1001-03.jpg arm-1001-04.jpg arm-...
Redbeard's user avatar
1 vote
4 answers
53 views

Can I get all hyperlinks that contain "@" then open them in new tabs?

I'm trying to open all hyperlinks on a page with link text that includes the "@" symbol. Here's an example below [[email protected]](https://stackoverflow.com/2342342352) [[email protected]](...
Struggling programmer's user avatar
1 vote
1 answer
47 views

MariaDB JSON: contains specific value in any sub attribute

I'm having a JSON like: {"a": {"z":true,"y":false}, "b": {"z":false,"y":false} }. I need to obtain in MariaDB if there is any (sub) ...
John Schols's user avatar
-1 votes
1 answer
62 views

Can i combine contain and startswith in order to match two columns from one dataframe to another's master column?

Master dataframe filled with a specific match's players and statistics. 34 columns and variable number of rows. Column "Player" has full names Player Goals Assists Dominic Calvert-Lewin 1 ...
filipakous's user avatar
-1 votes
1 answer
60 views

Check if any value from Array1 Contains any value from Array2

How can I check if a value from an Array Contains any value from an other Array ? For example: string[] array1 = {"1726KB12","271","MB192"} string[] array2 = {"KB&...
heyyimpiggy's user avatar

15 30 50 per page
1
2 3 4 5
204