case-insensitive

SQL- Ignore case while searching for a string

a 夏天 提交于 2019-11-28 16:04:45
问题 I have the following data in a Table PriceOrderShipped PriceOrderShippedInbound PriceOrderShippedOutbound In SQL I need to write a query which searches for a string in a table. While searching for a string it should ignore case. For the below mentioned SQL query SELECT DISTINCT COL_NAME FROM myTable WHERE COL_NAME LIKE '%PriceOrder%' gives all the above data, whereas SELECT DISTINCT COL_NAME FROM myTable WHERE COL_NAME LIKE '%Priceorder%' doesn't give. Eg. when I search for 'PriceOrder' or

case insensitive LDAP searches

梦想与她 提交于 2019-11-28 12:16:19
What't the syntax for performing a case-insensitive match on a 'uid' attribute? If attribute definition matters then how would that be changed? In particular I am using ApacheDS for my LDAP store. (uid=miXedCaseUSer) will match a uid of mixedcaseuser. Accoriding to the OID Description for 0.9.2342.19200300.100.1.1 - Userid userId is defined to have EQUALITY MATCHING RULE caseIgnoreMatch Which means it is one of the attribute definitions that employ case insensitive matching by default. I think they are case insensitive by default, unless its a password attribute. 来源: https://stackoverflow.com

How to make regex case-insensitive?

懵懂的女人 提交于 2019-11-28 12:09:06
I have this javascript code but when i send this: asd.JPG the regex fails to me.. if (data.match(/([^\/\\]+)\.(jpg|jpeg|gif|png|tiff|tif)$/i)) return { filename: RegExp.$1, ext: RegExp.$2 }; else return { filename: "invalid file type", ext: null }; So I want that the regex looks at the extension as case-insensitive. I tried this but it fails: data.match(/([^\/\\]+)\.(?i)(jpg|jpeg|gif|png|tiff|tif)$/i) Any Ideas? T.J. Crowder The i flag you have on the end ( /.../i ) should be doing it. (CW because let's face it, one shouldn't earn rep for this sort of thing... :-) ) 来源: https://stackoverflow

Git fetch a branch once with a normal name, and once with capital letter

前提是你 提交于 2019-11-28 11:30:56
I'm fetching for remote branches and stuck in some sort of a loop. I fetch once and get: $ git fetch * [new branch] minorRelease/something-> origin/minorRelease/something And then I fetch again and get: $ git fetch * [new branch] minorRelease/Something-> origin/minorRelease/Something Same branch but with a capital S . I tried to delete the file from the following folder .git/refs/remotes/origin/minorRelease , but when fetching again, I get both and return to the loop above: $ git fetch * [new branch] minorRelease/Something-> origin/minorRelease/Something * [new branch] minorRelease/something->

Is it possible for lxml to work in a case-insensitive manner?

泪湿孤枕 提交于 2019-11-28 11:16:24
I'm trying to scrape META keywords and description tags from arbitrary websites. I obviusly have no control over said website, so have to take what I'm given. They have a variety of casings for the tag and attributes, which means I need to work case-insensitively. I can't believe that the lxml authors are as stubborn as to insist on full forced standards-compliance when it excludes much of the use of their library. I'd like to be able to say doc.cssselect('meta[name=description]') (or some XPath equivalent) but this will not catch <meta name="Description" Content="..."> tags due othe captial D

How to change the collation of sqlite3 database to sort case insensitively?

廉价感情. 提交于 2019-11-28 10:49:53
I have a query for sqlite3 database which provides the sorted data. The data are sorted on the basis of a column which is a varchar column "Name". Now when I do the query select * from tableNames Order by Name; It provides the data like this. Pen Stapler pencil Means it is considering the case sensitive stuff. The way I want is as follows Pen pencil Stapler So what changes should I make in sqlite3 database for the necessary results? Related How to set Sqlite3 to be case insensitive when string comparing? Dror Harari The SQLite Datatypes documentation discusses user-defined collation sequences.

Case insensitive QueryExpression

本小妞迷上赌 提交于 2019-11-28 09:25:47
问题 Is it possible to build a query with a ConditionExpression which is not case sensitive ? ConditionExpression condition = new ConditionExpression() { AttributeName = "lastname", Operator = ConditionOperator.BeginsWith, Values = new ObservableCollection<object>() { searchName } }; In this example I would like the search with searchName to be case insensitive. 回答1: I believe that this is a factor of the database collation that was chosen during install of CRM rather than a feature of

Looking for case insensitive MySQL collation where “a” != “ä”

让人想犯罪 __ 提交于 2019-11-28 09:21:06
问题 I'm looking for a MySQL collation for UTF8 which is case insensitive and distinguishes between "a" and "ä" (or more generally, between umlauted / accented characters and their "pure" form). utf8_general_ci does the former, utf8_bin the latter, bot none does both. If there is no such collation, what can I do to get as close as possible in a WHERE clause? 回答1: My recommendation would be to use utf8_bin and in your WHERE clause, force both sides of your comparison to upper or lower case. 回答2: It

c# Dictionary: making the Key case-insensitive through declarations

淺唱寂寞╮ 提交于 2019-11-28 08:51:24
I have a Dictionary<string, object> dictionary. It used to be Dictionary<Guid, object> but other 'identifiers' have come into play and the Keys are now handled as strings. The issue is that the Guid keys from my source data are coming as VarChar , so now a key of "923D81A0-7B71-438d-8160-A524EA7EFA5E" is not the same as "923d81a0-7b71-438d-8160-a524ea7efa5e" (wasn't a problem when using Guids). What's really nice (and sweet) about the .NET framework is that I can do this: Dictionary<string, CustomClass> _recordSet = new Dictionary<string, CustomClass>( StringComparer.InvariantCultureIgnoreCase

How to MySQL work “case insensitive” and “accent insensitive” in UTF-8

我的梦境 提交于 2019-11-28 06:52:56
I have a schema in "utf8 -- UTF-8 Unicode" as charset and a collation of "utf8_spanish_ci". All the inside tables are InnoDB with same charset and collation as mentioned. Here comes the problem: with a query like SELECT * FROM people p WHERE p.NAME LIKE '%jose%'; I get 83 result rows. I should have 84 results, because I know it. Changing where for: WHERE p.NAME LIKE '%JOSE%'; I get the exact same 83 rows. With combinations like JoSe, Jose, JOSe, etc. All the same 83 rows are reported. The problem comes when accents play in game. If do: WHERE p.NAME LIKE '%josé%'; I get no results. 0 rows. But