Questions tagged [case-insensitive]

1

votes
1

answer
484

Views

Django QuerySet.union() -or- QuerySet.raw() to Achieve Case-Insensitive Mutli-Search

Given a URL like this: http://..../search/?foo=a&foo=B&bar=whatever In my View, I want to filter the QuerySet for CASE-INSENSITIVE matches of 'foo'. There's a handy 'in' operator that I could use on my list of 'foo', but it doesn't support case-insensitivity. To be clear, this (elegant code) perfor...
Lance E.T. Compte
1

votes
2

answer
1k

Views

React: Filter function case insensitive

I am filtering with react over a Json file. How can I do a case insensitive search? This is my code _handleSearch ({ inputNameValue, inputPriceValue }) { let list = data.filter(hotel => hotel.name.includes(inputNameValue)) }
Iván
1

votes
1

answer
649

Views

Case insensitive searching in elasticsearch 6.1.2

I was trying to search the following case I want to search a name that ends with the particular word. For example: name : group Test name : group test name : group test org Here is my wild card query 'bool' : { 'must' : [ { 'wildcard' : { 'name.keyword'' : { 'wildcard' : '*test', 'boost' : 1.0 } }...
Raviteja Gannoju
1

votes
1

answer
168

Views

Spring data mongo in condition case insensitive

I've got objects with string field and i want to search all objects which fits (case insensitive) to my array with string list. e.g. public class Person { private String name; } List list = Arrays.asList('teSt1', 'tEsT2'); i can create condition like: Criteria.where('name').in(list); but i have no...
Gwiazdek
1

votes
1

answer
335

Views

Case sensitivity with file names in VS Code and Windows Git

I'm having an issue with VS Code v1.26.1 on Windows 10. I cloned a repository where, in the same directory, it has file names with the same name but different cases for example: filename.ext and FileName.ext. VS Code thinks that these are the same file with a change, therefore it is showing them in...
Christina Ellul
1

votes
0

answer
67

Views

Case-insensitive string operations in es2018

We have multiple native methods provided by the String object in JavaScript: String.prototype.startsWith() String.prototype.endsWith() String.prototype.includes() String.prototype.indexOf() String.prototype.lastIndexOf() All of them are case-sensitive. When it comes to case-insensitive operations, w...
Alexander Abakumov
1

votes
4

answer
969

Views

Case insensitive search without additional rules?

I'm trying to find a collation in MySQL (my version is 5.0) where strings that differ in case are considered the same but there're no other rules like: á = a and so on. I tried to find the proper collation here: http://www.collation-charts.org/mysql60/by-charset.html but it seems that the collatio...
Martin Vseticka
1

votes
1

answer
305

Views

How to accumulate results using mysqlimport

I like mysqlimport, its fast and relatively easy to use (much faster then say, PHP or Python front-ends for importing > 20GB data files). However I'd like to do the following. I have a data file that looks like: cat dog 7 Cat Dog 3 CaT DOG 1 with the fields as varchar, varchar, int And I would like...
Hooked
1

votes
2

answer
192

Views

How to replace a non-static substring case-insensitively

This question is similar to this except that the substring to be replaced is only known at the runtime. I want to write the definition of ireplace, that behaves like this: >>> ireplace(r'c:\Python26\lib\site.py', r'C:\python26', r'image\python26') r'image\python26\lib\site.py' >>>
1

votes
3

answer
711

Views

Is there any case insensitive Unicode character encoding class?

I am using the following code for charater encoding of unicode charater. It is giving me the different string value of MD5EncryptedString when I use the value of the DataToEncrypt as 'abc' & 'ABC' String DataToEncrypt='abc'; String MD5EncryptedString = String.Empty; MD5 md5 = new MD5CryptoServiceP...
Shailesh Jaiswal
1

votes
2

answer
601

Views

how should utf8_general_ci data be stored?

i'm using utf8_general_ci, how should data be stored? i mean like if i have a varchar/text that contains special chars like áéíóúàèìòùçÇÀÉÌÒ, they are stored like that or they are converted in some way? im making a CASE/ACCENT INSENSITIVE search, but people told me i wasnt properply...
braindamage
1

votes
1

answer
2.8k

Views

Examples of Unicode String comparisons compared to the .NET framework default

I'm looking for some examples of how and when smart people do a Unicode comparison of strings, versus the framework default. Since many people don't work with strings from other cultures, here are a few interesting comparison examples I found. .ToUpper() The lowercase Turkish 'i' converts to an u...
random65537
1

votes
1

answer
2.6k

Views

Case insensitive search in Qt with SQLite

I have a SQLite database with cyrillic rows in it. For example: CREATE TABLE customer ( id INTEGER PRIMARY KEY, name TEXT, surname TEXT ); Suppose two of the rows are like this: '153 | Иван | Попов' '243 | Ivan | Popov' It is actually the same name and surname written in russian and english...
ashagi
1

votes
1

answer
1.6k

Views

Propel case-insensitive order by usage problem

I have been looking around for days and couldnt find anything helpfull. my problem is; I couldn't set criteria case-insensitive ORDER (A a b B D d). Because when I try to fetch my records from DB, its not ordering properly since ascii problems (A B C a b c ) I want to set my ORDER criteria like this...
littlealien
1

votes
2

answer
369

Views

Jquery: on filtering list(working), how to: make case insensitive, count number of keywords selected for each LI, and

http://jsfiddle.net/nicktheandroid/ape5U/ There's 2 or 3 things I need help with, if you can help me/guide me in the right direction on any of them, that would be great. 1) make script case-insensitive 2) When typing 'holy' it will show 'angels, jesus, holy spirit', when adding the word 'spirit' it...
android.nick
1

votes
1

answer
1.2k

Views

Solr case insensitve

Hallo, I'am implementing an autocompletion feature in Solr and have one problem. For autocompletion I am using I thought that the LowerCaseFilter should make the Token Case insensitiv but that ist wrong. In fact in just lowercases the Token which means that a query like 'comput' would lead to 'com...
user523859
1

votes
1

answer
167

Views

Given a string of words: How to find every word (case insensitive) in a varchar(1000) column in MySQL ignoring punctuation?

I have two database a and b with titles of scientific papers in them. I want to merge those databases to one single database c. It is possible that a contains titles which are not in b and vice versa. It is possible that a title is in both databases a and b. It is possible that the cases of the lett...
Aufwind
1

votes
1

answer
202

Views

cannot extract a double from a case insensitive string?

I am trying to come up with a case insensitive string, and I found the following on the web http://www.gotw.ca/gotw/029.htm So basically my code to come up with a case insensitive string is as follows struct ci_char_traits : public std::char_traits { static bool eq( char c1, char c2 ) { return toupp...
aaragon
1

votes
1

answer
471

Views

Play Framework: case-insensitive matching in play.libs.XPath

The Play Framework provides a great XPath object for processing XML documents. For example, to select foobar nodes from an xml document you could use List nodes = XPath.selectNodes('.//foobar', xmlDocument); However, this is case sensitive (as expected), so if you were to run the same query on an xm...
My Head Hurts
1

votes
1

answer
339

Views

XSLT 1 - find child node where node has case-insensitive value

I have the following selector, which works: parent::node()/myNS:expField[myNS:Nam='NAMETOFIND']/myNS:Val What I want is to do case-insensitive matching on the myNS:Nam value, so I would be able to select from any of the following: NAMETOFIND the value I want NameToFind the value I want nametofind t...
Sarah Vessels
1

votes
2

answer
3.8k

Views

How to use PreparedStatement and Case INsensitive search

1.How do I use PrepareStatement for familyname and givenname? 2.Also, how do I case insensitive search by familyname or givenname? String query ='SELECT agent.familyname, agent.givenname' + ' FROM agent' + ' WHERE agent.agentid = piececreation.agentid' + ' AND (LOWER(familyname) = ''+agent_lastname+...
krest
1

votes
1

answer
881

Views

Unable to fix Hg case-folding collision error with Mercurial's guide

Is there a problem with Mercurial's guide for fixing case-folding collisions or is there a problem with the way I am implementing the solution. The solution as provided on the Mercurial wiki is as follows: hg clone -U repo repair cd repair hg debugsetparents hg debugrebuildstate At this point, Mer...
jbranchaud
1

votes
2

answer
996

Views

LINQ: Guid Compare Ignore case

I want to check if a variable of type guid exist. I used new Db().JobCreate.Any(a => a.GuidVariable1.Equals(GuidVariable2, StringComparison.OrdinalIgnoreCase)); but I get the error Member 'object.Equals(object, object)' cannot be accessed with an instance reference; qualify it with a type name inst...
jpo
1

votes
2

answer
359

Views

Algorithm to determine if a range contains a case-insensitive search phrase?

Let's say you have thousands of files organized in the following way: First you sort them by their filename (case sensitive, so that upper case files come before lower case), then you grouped them into folders that contain the name of the first and the last file in that folder. E.g., the folders may...
waxwing
1

votes
1

answer
83

Views

How can I do a case-insensitive search with Rose::DB::Object?

How can I do a case-insensitive search with Rose::DB::Object? Here is the form of a Rose::DB::Object search: my $my_matches = $_my_table_class_mgr->get_objects( query => [ my_field => $my_value, ], ); Is there something I can add to the 'query' parameters, perhaps? But, I don't see anything that ad...
1

votes
1

answer
218

Views

JS match method with case insensitive doesn't work properly in IE/Chrome?

I've got the following keyword matcher: http://jsfiddle.net/y8Gd4/ If one types for example 'un', 'Sun' or 'Spa' it returns true for the first div with data-keywords attr with value 'Sun' or second with 'Spain'. But if one types 'sun' or 'spa' it returns false for both divs in IE 7/8/9 and Chrome 2...
Az.
1

votes
2

answer
462

Views

Meteor Accounts with different capitalization

When I include the Meteor accounts package, and the accounts-ui package, the usernames are case sensitive. If I register as 'Liam', then log out and try to log back in as 'liam', it doesn't work. I can, however, register a new account with the username 'liam'. I would like to change it so usernames...
fnsjdnfksjdb
1

votes
1

answer
520

Views

Aqua Data studio, compare results, column names case-sensitive

Any Aqua Data studio users out here know how to turn off case-sensitivity when comparing results? e.g. in one Query, column 1 is called 'test', in another one it's called 'TEST', then Aqua datastudio does not identify these columns when comparing results. How can I turn this off? I can ignore upper/...
Willi Fischer
1

votes
1

answer
331

Views

How to validate unique pairs while being case insensitive

I have a model for Guilds that have a 'Name' and 'Realm' attribute I want to make it so that the 'Name' and 'Realm' pairings are unique regardless of case. Enforcing the case sensitivity is the only issue I have at them moment. here's what I've got so far: validates_uniqueness_of :name, scope: :real...
Vin
1

votes
1

answer
182

Views

Declare a case insensitive keyword with EBNF

I want to declare with EBNF notation a keyword, i.e. switch. ::= 'switch'; Is there a way to declare the keyword as case insensitive without declare all possible letters combination? I think that the following declaration is correct (but unsire, I'm a newbie with EBNF): ::= ('S'|'s')('W'|'w')('I'|'i...
Jepessen
1

votes
1

answer
1.3k

Views

Case Insensitive Jaxb2Marshaller

Jaxb2Marshaller (org.springframework.oxm.jaxb.Jaxb2Marshaller) is part of Spring's O/X Mapping integration classes. I use it as the unmarshaller of a StaxEventItemReader : xx.xx.xx.MyBean1 xx.xx.xx.MyBean2 xx.xx.xx.MyBean3 MyBeanX classes are annoted with javax.xml.bind.annotation annotations : @Xml...
Thrax
1

votes
1

answer
431

Views

Copy content of source dir to destination dir having same name but different case

I am trying to copy a source dir to destination dir but the problem is that the destination dir has the same name but different case. For example, cp -rp /mydata/AbC.git/* /target/abC.git To clarify further, i am using dir name as variable in script: cp -rp /mydata/${dir_name}.git/* /target/${dir_na...
Technext
1

votes
2

answer
81

Views

full db substring search case (in)sensitive

i am would like to perform for my database a full database substring search. So if a the field has ' hello world, how are you and I am looking for how. The result should show 'hello world [..bla bla bla..]'. Additionally how do I add a boolean var, which is for case sensitive oder insensitive. I got...
kellerprogger
1

votes
1

answer
647

Views

How can I specify a case insensitive search in Java

I currently have this code in place: query = 'select ID_OBJECT from '+Config.props.getProperty('Ob.SchemaName.Objects')+'.sdm_doc_info where name like ? and typefileverscurr = 'DWG''; However this only returns results that match the upper case DWG. I would like my search to be case insensitive....
jak
1

votes
1

answer
102

Views

::std::regex_replace with syntax flag icase on Windows (VS2013 Update 4, VS2015 Update 3) does not match using character ranges

I use the following C++ code with VS2013 Update 4 and VS2015 Update 3 using a character range to try to match case insensitively and to replace the occurrences: std::wstring strSource(L'Hallo Welt, HALLO WELT'); std::wstring strReplace(L'ello'); std::regex_constants::syntax_option_type nReFlags = st...
Martin Lemburg
1

votes
1

answer
483

Views

Solr 6 Case insensitive query

I'm looking for a way to do a case insensitive query on Solr 6. I'm using Json files. Here is my current query : http://ipaddress:8983/solr/artists/select?q=title:*my string*&rows=200&wt=json&indent=true Any Idea ?
GIJO
1

votes
1

answer
377

Views

How can I find and replace text after a specific character on each line in Python?

I have multiple files with lines as below and need to cycle through and find and replace 'TEXT' but only after the '=' static.TEXT.here=change.TEXT.here This is my current code but I'm hitting my head against the wall to specify only after '=' as the 'TEXT' needing replacement is not in a consistent...
LongBlackNoSugar
1

votes
1

answer
113

Views

Matching against a large number of strings containing spaces in pyparsing

With pyparsing I need to write a matcher for expressions like a + names + c with a = pp.OneOrMore(pp.Word(pp.alphas)) c = pp.OneOrMore(pp.Word(pp.nums)) and names matching one of many entries in the string list names_list. The two complications are: The entries in names_list can contain spaces. Th...
halloleo
1

votes
2

answer
1.2k

Views

How do I make my Nokogiri :contains case insensitive?

I'm using Ruby 2.4 and Nokogiri. I have this for finding an element on my page with certain text ... a_elt = doc.at('a:contains('MY TEXT')') How can I make the :contains case insenstiive? I'm not guaranteed the text will always be upper case.
1

votes
1

answer
41

Views

Vim - case sensitivity and convention for key symbols

When writing vimscript, is there any difference between things like , , and ? I see certain words always written in lower case, e.g. , certain words always in upper case, e.g. , certain words with leading uppercase, e.g. , and and others written in multiple ways, e.g. and . Are these completely c...
Kvass

View additional questions