Questions tagged [lowercase]
Lowercase characters are letters in minuscule: a, b, c, …
0
votes
2answers
31 views
UPSERT - INSERT … ON CONFLICT fails with a function based index as 'lower()' unique constraint
I have a database table with a code column that uses a lowercase index to prevent code values that only differ in case (e.g. 'XYZ' = 'xYZ' = 'xyz'). The typical way in Postgresql is to create a ...
0
votes
2answers
28 views
How to implement the method “lower()” on a list?
current_users = ["Bob", "RocK", "JeNNy", "Sara", "mike", "ROGER"]
new_users = ["rock", "Eliza", "MiKe", "roger", "StEve"]
for new_user in new_users:
if new_user.lower() in current_users:
...
0
votes
5answers
52 views
Lowercase a list of lists
I have a list of lists:
data = [['SiteUrl','Url','Title'],['SiteUrl','Url','Title']]
How can I iterate through the list and lowercase all the content using python?
0
votes
2answers
32 views
MySQL / MariaDB Case Insensitive Collation Still Case Sensitive?
Using MariaDB 10.0.36, I have a user table with the collation of utf8_turkish_ci with a user_login column that stores a user's username that is also using the collation of utf8_turkish_ci with a ...
0
votes
0answers
48 views
what does the error message, Found characters that are probably not UTF-8 encoded mean?
I include the following method in my code to help with lowercase letters, extra spaces etc... But I seem to get the same wrong message. Can you please explain what it mean? I've never seen it before ...
1
vote
1answer
44 views
I need to ask for a 'Case in-sensitive' code for scanner input. any advice accepted
I wondered: is there a way to make the reading of scanner input
'case in-sensitive' whitout lower or upper case?
I have to make lots of 'Y' or 'N' answers and I have to convert each scanner input to ...
0
votes
1answer
35 views
UpCase for *string in C [duplicate]
i wanted to know why i can't transform all my letter into lowercase in my string in my function.
I try to print the string before the "if" and it worked so i dont understand why i cannot do :
string[...
0
votes
1answer
74 views
Change case to lower [closed]
I am new to python and trying to change the case of many strings to lower case.
Many strings are contained as elements of a list and the list itself is a value for a key(string datatype) of a ...
0
votes
1answer
41 views
Python str.islower() method doesn't seem to be working in my code?
I'm analyzing the text of Macbeth through the Project Gutenberg website, and I'm trying to create a list of the characters by mention of their names. I know there is a way to do this with nltk but I ...
2
votes
2answers
73 views
Convert first lowercase to uppercase and uppercase to lowercase (regex?)
I have a huge file in this layout:
world12345:Betaalpha
world12344:alphabeta
world12343:ZetaBeta
world12342:!betatheta
I need to convert the first lowercase letter after the ":" to ...
0
votes
0answers
28 views
Postgres make lower work for Swedish language (other Nordic too)
When I'm running query:
select lower('Ågab') from account limit 1;
on my postgres database the result looks like this:
Ågab
How to make it to look like:
ågab
This is Swedish, but in the same ...
-3
votes
1answer
25 views
Converting to lower-case: every letter gets tokenized
I have a text document that I want to convert to lower case, but when I do it in the following way every letter of my document gets tokenized. Why does it happen?
with open('assign_1.txt') as g:
...
0
votes
1answer
22 views
Apache cannot detect and rewrite URLs to lowercase
What am I trying to achieve?
I want to convert all URL's that are within the /migrate directory (and subdirectories) to lowercase.
What have I done?
I have migrated my website from DNN to Wordpress....
0
votes
2answers
104 views
How to alternate lower and upper case on dictionary keys? Python 3
im new on python 3.
What I want to do is to alternate upper and lowercase but only on a dictionary key.
my dictionary is created from a list, its key is the word (or list element) and its value is ...
0
votes
1answer
31 views
Editing string in a list inside a dictionary in python3
If I have a dictionary like this:
{'alfa': ['Computer Science'], 'beta': ['book', 'CompUter']}
And I want to turn it into a dictionary like this:
{'alfa': ['computer science'], 'beta': ['book', '...
0
votes
2answers
42 views
Convert character of file to uppercase
Written in C
I have used this if loop in main function -->
if(islower(ch))
I'm finding the error as
:warning :implicit declaration of function 'islower'
if(islower(ch))
Why is it so?
0
votes
0answers
41 views
MySQL: Split String Based on Lowercase Word
I have been looking for an example of how this might be done in MySQL-- I really would appreciate the help.
Problem --> Need to split string into two columns based on lower case words (acting as ...
0
votes
3answers
41 views
change case with regex [duplicate]
I want to convert this text
font-size-18
to this
fontSize18
using Regex. Here is my trail:
let conv = str => str.replace(/\-[a-z]/gi,/[A-Z]/gi);
but it doesn't work, I can do it without ...
2
votes
2answers
47 views
Lucene 7.5.0 how to set lowercase expanded terms to true
I have implemented my own Analyzer, QueryParser and PerFieldAnalyzerWrapper to implement the ElasticSearch ${field}.raw feature. Everything seems to be working ok, except for when I test using ...
0
votes
1answer
277 views
Pyspark how to remove punctuation marks and make lowercase letters in Rdd?
I would like to remove punctuation mark and make the lowercase letters in RDD?
Below is my data set
l=sc.parallelize(["How are you","Hello\ then% you"\
,"I think he's fine+ COMING"])
I tried ...
0
votes
2answers
37 views
A to L lower and M to Z uppercase
I'm trying to set some condition on string.
Condition is if character is A to L then lower it.
if character is M to Z uppercase it.
Following is Code
def fun_exercise_6(word):
low = ['a','b','c'...
0
votes
2answers
71 views
How to use command line argument to input data and convert data into uppercase
I am trying to figure out how do I use the data that I've entered in the command line and use it to convert my data into uppercase letters. I am very new in C. Here is the code. Can anyone tell me ...
0
votes
1answer
46 views
Oracle 11g,12c LOWER TURKISH character problem
sql:
select LOWER('I') FROM DUAL
Result:
LOWER('I')
i
select nls_lower('I',nls_sort='xturkish') from dual;
Result:
nls_lower('I')
ı
i want use the lower function of the hibernate, how can I cast ...
0
votes
0answers
9 views
HTAccess - convert to lowercase ignore DIR
I've had a look at a few solutions, but I'm coming up short on something that ecompasses the below;
Convert and redirect any page URL that contains uppercase characters
to the lowercase variant
Pages ...
0
votes
0answers
67 views
Sentence to lower case - Why split first?
I am learning the basics of how to process text data, and I am currently on the preprocessing operation of converting sentences to lower case. All tutorials I find do the following:
train['tweet']....
1
vote
1answer
672 views
lower_case_table_names=1 on Ubuntu 18.04 doesn't let mysql to start
I have installed mysql community server 8.013 on ubuntu 18.04 and I have the following issue.
I want to set lower_case_table_names=1 in order to have case insensitive table names in my db.
I edited /...
1
vote
4answers
398 views
MySQL - Select where first character is lowercase or uppercase
Sorry if this is something that was asked before, but I am not able to find the answer to this.
How do I create a MySQL select statement to select all strings from the database whose first characters ...
0
votes
0answers
23 views
windows registry: entry that on right-click doesn't open a window
Hi: I made a naive CPP program that revert case of text in windows clipboard, I edited the registry to add the shortcut on right click as
for uppercase:
HK_CLASSES_ROOT > directory > ...
12
votes
6answers
1k views
Randomly capitalize letters in string [duplicate]
I want to randomly capitalize or lowercase each letter in a string. I'm new to working with strings in python, but I think because strings are immutable that I can't do the following:
i =0 ...
0
votes
2answers
46 views
Have key value in associative array be uppercase first letter and the rest of the string lowercase
I have declared an associative array in php and assigned it key values that have a mixture of lower and uppercase letters. I need the key values in the array to be uppercase first and string the rest ...
0
votes
2answers
37 views
Printing lowercase, uppercase, and number of numbers
#include<stdio.h>
int main() {
char text[1000];
int ch;
int index = 0;
while ((ch = getchar()) != EOF) {
text[index] = ch;
index++;
}
text[index] = '\0';
int ...
1
vote
1answer
53 views
Ordering data why does lowercase appear last
When ordering data in sql developer, why does the data with allow lowercase letters appear last?
for example
Adam, Ben, Charlotte, Matthew, emily
Why isn't it: Adam, Ben, Charlotte, emily, Matthew?
...
1
vote
1answer
23 views
List element case conversion [duplicate]
I have a list that has 12 elements. I am getting an input and matching that input with the value of another variable. Now that means that case-sensitivity will be a problem. I know how to go through ...
-2
votes
1answer
30 views
“list” object have no attribute “lower”
Can't figure out whats the problem,i wanted to make a program that takes a line of strings and return the words along with their type as decribed in the "In" function.
This is the code
def __init__(...
-4
votes
1answer
46 views
How to check if there are 2 upper case letters, 3 lower case letters, and 1 number in JAVA
Please help i have been stuck for a good part of an afternoon already and cant really find/understand answers from other resources. I need to receive a password input from the user and need to test ...
0
votes
2answers
614 views
Lexicographically smallest palindrome in python
I found this question to be interesting and I would like to share this here and find reasonably good codes, specific to py :
Given a string S having characters from English alphabets ['a' - 'z'] and '...
-1
votes
2answers
28 views
Having trouble updating python input into lowercase
So I am trying to create a program that takes in a customer choice of food. I want the user to be able to input their choice in capitals so I can then convert it to lowercase and then compare it using ...
1
vote
4answers
49 views
Problems with Output in Java
I have no idea why my output is not coming out correct. For example, if the input is "Running is fun" then the output should read "Is running fun". However, the output I am getting is "Iunning".
...
4
votes
3answers
88 views
Python lowercase list comprehension failing tests when it seems to be right?
I'm doing a Python course that involves completing numerous online questions, and the task seemed really simple (take a list of strings and convert it to lowercase). However, my code fails no matter ...
-1
votes
2answers
71 views
How to use “toLowerCase();” in java script
I would like to have inputResult toLowerCase I mean that it would not matter if somebody insert the color name with Lower or Big case. I have been trying this but it does not work:
checkResultBtn: ...
0
votes
0answers
16 views
Correct a command line in SGML to produce lower case in xml
My question may be too specific for such a forum, but I am at a loss for where I can find any kind of info about the sgml/sgmt file in our archives database that creates an EAD (encoded archival ...
0
votes
4answers
77 views
How to change words in a list to upper/lower case using range - Python
One part of my assignment is to get user input, convert that into a list, then depending on the number of characters in each word, change to upper/lower case accordingly. I have been told I have to ...
0
votes
3answers
2k views
lower_case_table_names Settings in MySQL 8.0.12
I've just compiled the version MySQL 8.0.12 in a Ubuntu 16.0.4.
After following the instructions in the website and making the following my.cnf file:
[mysqld]
datadir=/usr/local/mysql/data
socket=/...
0
votes
0answers
46 views
how to dynamically generate data from a column into an empty column in postgres using nodejs
I have a table like this on postgres. the table below is a part of a CSV file which has been imported into a postgresql Database using "fast-csv" library via node.js:
--------------------------------...
0
votes
3answers
50 views
How do I lowercase a JSON object on pandas dataframe
Here's my data:
Id var_map
1 {'email_count': 3.0, 'outgoing': 90.0}
2 {'Email_Count': 5.0, 'outgoing': 91.0}
What I did is
df['var_map'] = score_data['var_map'].str.lower()
The result is ...
0
votes
1answer
30 views
Postgres lowercase column and delete duplicates
I have the following table:
Customers
---------
name text
object_id integer
created_time timestamp with time zone
Indexes:
"my_index" UNIQUE CONSTRAINT, btree (name, object_id, ...
2
votes
2answers
155 views
Julia - Check if every character in string is lowercase or space
How do I check if every character in a string is lowercase or space?
"this is all lowercase" -> true
"THIS is Some uppercase " -> false
"HelloWorld " -> false
"hello world" ...
1
vote
2answers
49 views
to lower case in array_combine
I have a simple parser that parse a csv file and return me an array indexed by the names of the cells in the header row, here is my code :
$file = file(public_path() .'/screens/'. $file, ...
-1
votes
1answer
12 views
Active Directory vbscript case conversion
I need some help with my script.
The full script can be found here
The portion of the script I need help with is this:
If (Len(strTitle) > 3) Then
arrStr = Split(strTitle," ")
For i=0 ...
-2
votes
1answer
40 views
Using .lower or 'or' in if __ is __ statement causes incorrect if statement flow in python 3.6
I searched and couldn't seem to find anyone who has had this same issue, although I'm very new to python and there's a great chance it is just user error.
I'm having problems using both 'or' and ....