Top "String-comparison" questions

string-comparison is the action of comparing strings, resulting in a boolean or an integer indicating the "distance" between the strings.

What is the correct way to check for string equality in JavaScript?

What is the correct way to check for equality between Strings in JavaScript?

javascript string string-comparison
Check whether a string is not null and not empty

How can I check whether a string is not null and not empty? public void doStuff(String str) { if (str != …

java string string-comparison
MySQL query String contains

I've been trying to figure out how I can make a query with MySQL that checks if the value (string $…

php mysql sql string-comparison
How do I compare two strings in python?

I have two strings like string1="abc def ghi" and string2="def ghi abc" How to get that this two …

python string python-2.7 string-comparison
If statement with String comparison fails

I really don't know why the if statement below is not executing: if (s == "/quit") { System.out.println("quitted"); } Below …

java multithreading if-statement string-comparison
How do I compare two strings in Perl?

How do I compare two strings in Perl? I am learning Perl, I had this basic question looked it up …

perl string-comparison
Checking whether a string starts with XXXX

I would like to know how to check whether a string starts with "hello" in Python. In Bash I usually …

python string string-comparison
Case-insensitive search

I'm trying to get a case-insensitive search with two strings in JavaScript working. Normally it would be like this: var …

javascript search string-comparison case-insensitive
How can I make SQL case sensitive string comparison on MySQL?

I have a function that returns five characters with mixed case. If I do a query on this string it …

mysql sql interop case-sensitive string-comparison
How can I do a case insensitive string comparison?

How can I make the line below case insensitive? drUser["Enrolled"] = (enrolledUsers.FindIndex(x => x.Username == (string)drUser["Username"]) != …

c# string-comparison case-insensitive