An operation is case sensitive when uppercase and lowercase characters are treated differently.
Questions tagged [case-sensitive]
1275 questions
-2
votes
1 answer
Grep performance: using -ri vs. just using -r
Yesterday a coworker told me during a debug session, that if you use grep -r is much faster as when using grep with case insensitive Flag (e.g grep -ri) . So the question is, is this so? And if so why does it cost so much to transform letters into…

Dirk
- 451
- 7
- 21
-2
votes
1 answer
Avoiding the case sensitivity in python
I need to make the code below disregard any case sensitivity
Here's the code:
sentence=str(input("Enter sentence")
words=sentence.split()
uword=input("enter word from sentence")
if uword in words:
print("Word is in sentence")
else:
…

R Rodriguez
- 45
- 1
- 5
-2
votes
3 answers
C# - How can I correct string case by using HashSet
Given a hash set such as:
HashSet names = new HashSet(StringComparer.OrdinalIgnoreCase)
{
"Alice",
"Bob",
"Charles",
}
How can I use this hash set to find the mapped value of a case insensitive string? For example, if I…

GoCurry
- 899
- 11
- 31
-2
votes
1 answer
Ignoring case sensitive in c#
I have 2 string that I am comparing but I need to avoid problem if I use upper case or lower case.
There's any way to achieve this?
Thanks
Here's my code:
if (userID >= 0 && fnIndex >= 0 && lnIndex >= 0)
{
for (int i = 1; i < userDataId.Length;…

A arancibia
- 281
- 4
- 5
- 19
-2
votes
2 answers
How to display the word and its number of occurences in a string in C
Basically, I want to display the words and their number of occurrences in a string. It can be both case sensitive and vice-versa.
For e.g if the input string is "Hello World How are you Hello how", the output should…

Pawan Kumar
- 594
- 4
- 18
-3
votes
1 answer
Trying to create RegEx expression for string starting with a number and them matching a certain string inside?
I am trying to create a regular expression that starts with a number but then matches de or ba followed by 3 to digits right after it. What it should match is:
1Ghde345c
22Zui2ba777@
What I have so far is:
/^[0-9]?(be|de)*\d{3,5}/gm
But it doesn't…

Jared Persad
- 1
- 1
-3
votes
1 answer
Remove specific letter and adjacent string values regex
I am looking at a list of strings that are space separated. I am trying to find parts of string that contain a lower case "n" letter that is not next to an uppercase letter, then remove the lowercase "n" and any adjacent letter/number.…

Learner123
- 87
- 5
-3
votes
1 answer
If Java / Python is case sensitive with its variables then the float with exponential values are not, why so
Variables in python(or Java) languages are case sensitive. Having said that,
When I am printing
>>> a=3.14159
>>> b=999999999999999999999
>>> print(a*b)
3.14159e+21
I can see that 'e+' (exponential) value is in lower case, where has If I use the…

FayazMd
- 386
- 2
- 22
-3
votes
1 answer
How to Handle Case Sensitivity issue with JNativeHook Library
I have issue in abstract Method releasedKey of Interface NativeKeyListener.
It only captures the key in Case INSENSITIVE Manner(Only Upper Case) but I need it to be Case Sensitive. Besides this the keyTyped method has issues.
Any Solution or Best…
-3
votes
2 answers
C# string replacement with case duplication
I'm working on an interesting project that requires some string replacement in a unusual way. Specifically, the result's case must try to match the original's case and the search itself is case insensitive.
Examples:
original: "Test Foobar…

Danation
- 743
- 8
- 20
-3
votes
1 answer
Oracle Case Insensitive settings
I am tring to set case insensitive parameters like bellow commands
ALTER SESSION SET NLS_COMP=LINGUISTIC;
ALTER SESSION SET NLS_SORT=BINARY_CI;
and
ALTER SYSTEM SET NLS_COMP=LINGUISTIC;
ALTER SYSTEM SET NLS_SORT=BINARY_CI;
but when It doesnt…

A. Zalonis
- 1,599
- 6
- 26
- 41
-4
votes
2 answers
How to make string inputs case insensitive in C#?
So, in my quest to learn C#, I am attempting to create an interactive story that changes based on some of the input that the user had submitted. If the user types in "Bobby" in this case, the narrator begins to talk like Hank Hill. However, with how…

DaimonCide
- 11
- 1
- 4
-4
votes
2 answers
python. how to add in .lower().
user1 = "aqa code"
pass1 = "uzair123"
username = input("Enter username: ")
password = input("Enter password: ")
while username != user1:
print("Access denied: username is incorrect try again ")
username = input("Enter username again: ")
…

user3820439
- 11
- 1
-5
votes
1 answer
Program with input that has to be Case sensitive
I have an assignment I am doing for my class. I have to write to ask for a year, and then the month by the input of the first three letters of the month. It will output the follows statement "February 2000 has 29 days" from what I am asked for the…

Grave203
- 17
- 4
-9
votes
4 answers
How do I alternate the case in a string?
I need to alternate the case in a sentence and I don't know how to.
For example:
thequickbrownfoxjumpsoverthelazydog
to
GoDyZaLeHtReVoSpMuJxOfNwOrBkCiUqEhT
this is my code so far
Console.WriteLine("Please enter a sentence:");
string text =…

musiclover
- 1
- 1
- 5