Skip to main content

Questions tagged [ignore-case]

A method that ignores case when comparing two strings.

ignore-case
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&...
Michele's user avatar
  • 3,797
0 votes
0 answers
59 views

Jooq (PostgreSQL) - condition build from list of substrings, case-insensitive

I'm looking for a efficient way to find items in a table (lets say Location) with a column "short_name". In my Kotlin code I have a couple of filter queries and in two of them a property ...
bobig12's user avatar
0 votes
1 answer
34 views

Is there a more efficient way to set different cases of ActionEvent than using if else statements?

I'm trying make a currency exchange program and I'm using a ComboBox to list the type of conversions the user wants to make and when the user selects a choice, it will make the conversion. Is there a ...
D_D's user avatar
  • 51
0 votes
1 answer
136 views

Pandas findall re.IGNORECASE doesn't work

I have a list of keywords: keywords = ['fake', 'hoax', 'misleading', etc.] I'd like to search the text column of DataFrame df1 for the above keywords and return rows containing these keywords (exact ...
mOna's user avatar
  • 2,401
1 vote
2 answers
130 views

Why is Regex.Replace with RegexOptions.IgnoreCase not working when I have "(" in the text?

I want to replace text with Regex, and to use RegexOptions.IgnoreCase, but it is not working, when I have "(" in my text. The code is: var textToReplace = @" = CreateObject""(...
אילה סוקולובסקי's user avatar
0 votes
1 answer
169 views

ignore_case doesn't work for elastic search stop token filter

I'm trying to test stop token filter that does stop words case sensitively. I try the example from elastic searche's documentation as is. But it doesn't work. Is the documentation wrong or I'm doing ...
TAugusti's user avatar
0 votes
2 answers
657 views

Kotlin check List contain ignore case

Having the equals ignore case option if (bookType.equals(Type.BABY.name, true)) Is there an option to do contain similar with ignore case? val validTypes = listOf("Kids", "Baby")...
userit1985's user avatar
2 votes
1 answer
3k views

How to implement context string comparison ignoring case in C# (Linq) [duplicate]

var foundName = await (the Context) .Search<MyEntity>(x => x.Name.Equals(data.Name, StringComparison.OrdinalIgnoreCase)) .AsNoTracking() ...
user avatar
1 vote
1 answer
96 views

Rails Regexp::IGNORECASE while matching exact options with number options also included in the results

I want to match the options between two arrays with exact string. options = ["arish1", "arish2", "ARISH3", "arish 2", "arish"] choices = ["Arish&...
Arish Khan's user avatar
1 vote
1 answer
462 views

Ignore case Xpath @Name attribute c# Selenium/Appium

I have a C# selenium/Appium project where I need to find a desktop Application window By.Xpath(""). This works: By.XPath("//*[@Name='ASDASD']"); However, some builds of the app ...
bonislav's user avatar
0 votes
1 answer
225 views

Python: replace case insensitive flag doesn't work

In my dataframe I want to replace different ways of representing something with a single consistent string. Examples: Replace [COM, COMMERCIAL] with "Commercial". Replace [FALSE, False, ...
SModi's user avatar
  • 125
-3 votes
2 answers
520 views

Object comparison but ignore case of strings

I have an object like so: public class MyObject { public string firstname { get; set; } public string lastname { get; set; } public int age { get; set; } public string occupation { get;...
Jeremy P's user avatar
  • 1,407
1 vote
1 answer
2k views

DynamoDB Scan ignoring uppercase or lowercase letters

My boss asked me to make a filter that does not recognize upper and lower case letters and I added the following code that makes the filter but recognizes the use of upper and lower case letters and ...
Sergio Rodriguez's user avatar
1 vote
0 answers
1k views

How to solve StringComparison.OrdinalIgnoreCase and LINQ issue?

Here's the code: controller: //POST api/substances [HttpPost] [ServiceFilter(typeof(ValidateNameExistsAttribute<Substance>))] public ActionResult<...
Apearl's user avatar
  • 11
0 votes
1 answer
127 views

Looking for information on specific operators in Bigquery, if they exist, and if not, what other operators perform similar functions

I am looking to understand whether or not the below functions are supported in bigquery. I have tried to use them and they are not recognized. If they are not supported, could you recommend what could ...
David Guckian's user avatar

15 30 50 per page
1
2 3 4 5
7