Questions tagged [contains]
The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.
contains
3,051
questions
-1
votes
0
answers
18
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 '...
-1
votes
0
answers
12
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["...
-1
votes
1
answer
55
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 ...
0
votes
1
answer
26
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:
- ...
0
votes
1
answer
30
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 ...
0
votes
2
answers
90
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&...
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/...
0
votes
0
answers
24
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 ...
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-...
1
vote
4
answers
52
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]](...
1
vote
1
answer
38
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) ...
-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
...
-1
votes
1
answer
59
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&...
3
votes
1
answer
55
views
How to filter dataframe column names containing 2 specified substrings?
I need the column names from the dataframe that contain both the term software and packages.
I'm able to filter out columns containing one string.. for eg:
software_cols = df.filter(regex='Software|...
0
votes
1
answer
143
views
Strapi Filter with $containsi(not case-sensitive) parameter, doesn’t work with cyrillic
i have name field in cyrillic and trying to search by that field using $containsi parameter
fetch("https://example.com/api/products?filters%5B$or%5D%5B0%5D%5Bname%5D%5B$containsi%5D=%D0%B3%D1%80&...