Questions tagged [case-insensitive]

An operation is case insensitive when uppercase and lowercase characters are equally treated.

1146 questions
-1
votes
5 answers

Make the string case insensitive in java

I have a question in my app I have a String which contain a word for search, then I use this word to search from a long Text, I want that all words that contain the searched word to return (e.g. WoRd = word = WORD). Thanks. private static int…
Dan Paschevici
  • 961
  • 2
  • 10
  • 22
-1
votes
2 answers

How to match whole words while each word is case insensitive without RegexOptions.IgnoreCase?

I want my RegEx to work both on server and client side (with javascript) I'm decorating my ViewModels like this: [Display(Name = ConstantKeys.ValidationMessage_Gender_Name)] [Required(ErrorMessage =…
Yovav
  • 2,557
  • 2
  • 32
  • 53
-1
votes
1 answer

Searching thru an array case-insensitivly

I have an Array of different transactions and I need to search thru the array for different names of businesses. I need a search method that can find these 3 names. #
SupremeA
  • 1,519
  • 3
  • 26
  • 43
-1
votes
2 answers

Make function parametres Case insensitive in ruby

Here is my function: def run_test_non_compilation(short_name,error_label) @short_name = short_name $error_label = error_label # more coding here end What I want is as follows: If I execute …
Mourad
  • 474
  • 4
  • 10
-1
votes
1 answer

capitalized named class not found (php, centos)

I've a class named SearchItem and another script called sample.php which includes SearchItem class. When I call the class, it gives error "SearchItem" class not found. But i know it was included before. PHP does not recognise capital letter i. Do…
-1
votes
1 answer

How to make SybaseIQ case insensitive?

I created my DB(SYbaseIQ 16.X) with Case IGNORE feature, but it's failing for all select due to case sensitivity. I tried ALTER DATABASE command, but it doesn't have any such option. How can I revert my DB to case IGNORE setting, and also to check…
-1
votes
1 answer

How to replace with starting and ending with asterik

How do I get the required output? input string : " software Company(1920 of 2012)(sb.2)(sb.3) IBM on established (2009)" word to be searched - "software company(1920 of 2012)" Output *software Company(1920 of 2012)*(sb.2)(sb.3) IBM on…
-1
votes
1 answer

Case insensitive string filter in ext js

How can I make case insensitive string filter in extjs. Following is the corresponding grid column. var columns = [{ dataIndex: 'name', header: 'NAME', style: 'border: none;', id: 'name', …
skmaran.nr.iras
  • 8,152
  • 28
  • 81
  • 116
-2
votes
1 answer

How does `new Dictionary(StringComparer.CurrentCultureIgnoreCase)`/`new HashSet(StringComparer.CurrentCultureIgnoreCase)` work?

I was looking around for a way to have a dictionary key/hash set string be case insensitive. I found many answers around on SO and even on the MS website. From what I've seen, it seems like the answers are saying that by setting the…
Adrian
  • 10,246
  • 4
  • 44
  • 110
-2
votes
1 answer

c++ vector string problem about case sensitivity

so in c++ 'A' and 'a' are different characters, if we have a vector that contains both upper and lowercase letters, how to write a function that transforms this vector into some vector that is case insensitive, for example, 'ABba' becomes the same…
math boy
  • 25
  • 4
-2
votes
1 answer

Mariadb case insensitive fulltext search on json columns

I am using laravel but can use raw sql if needed. I have multiple fields that are json fields, in that json there is translated data for that language. So, for example post table has field title and that title is {"en": "Title in english", "et":…
user1365447
  • 145
  • 1
  • 12
-2
votes
2 answers

What is the proper way to allow a capitalized "Yes" input and a non-capitalized "yes" input or value in Python?

''' I am trying to allow a user to type a capital "Yes" as input or a non-capitalized "yes" as input and still get a 'True' value for the variables, good and the same with 'phone' or 'Phone' for the variable, aid. print ('Do you want to take the…
-2
votes
1 answer

How to make a sort case insensitive

My application reads a Firebase DB with several companies and load them to a TableView. My code is class TableViewController: UITableViewController { var clinics: [Clinic] = [] override func viewDidLoad() { super.viewDidLoad() …
-2
votes
2 answers

How to remove one of duplicate keys (one in lowercase one in uppercase) and merge their values in Python?

I have a list of dictionaries called dicts. I am writing dicts into a csv file using DictWriter. dicts has duplicate keys like: Accepted Currencies (DASH) and Accepted Currencies (Dash) which I would like to merge those keys into a single key with…
Zeinab Akhavan
  • 323
  • 1
  • 2
  • 13
-2
votes
2 answers

Make array_unique() case-insensitive

$tags_array = explode(',', $tagss); this gives result like. Array ( [0] => Katha [1] => pooja [2] => singer [3] => katha ) when i use array_unique not working gives same result. //print_r($tags_array); print_r(array_unique($tags_array)); Array…