Questions tagged [lowercase]
Lowercase characters are letters in minuscule: a, b, c, …
982
questions
0
votes
3
answers
44
views
Best Way to Implement a Custom lower() method in Python
I have an assignment where I'm not allowed to use the .lower() function so I'm creating my own. At the moment I have two ideas on how to do this but would love some input on what the most efficient ...
-1
votes
1
answer
40
views
A specific regex with upper/lower case [duplicate]
I need to validate URL from a marykay.com or .ca website only.
Plus I need them to be able to have upper or lowercase
Example:
www.marykay.com/whatevertheytype
www.marykay.ca/whateverytheytype
www....
-2
votes
0
answers
8
views
URL MixedCase Redirect [closed]
I spent a lot of time trying to fix it but it still doesn't work. Example: https://example.com/home/ExaMpLe.html
when I access the link, the website link automatically lowercase like:
https://example....
0
votes
1
answer
15
views
Keyword normalizer not applied on document
I'm using Elasticsearch 6.8
here is my mapping
{
"index_patterns": [
"my_index_*"
],
"settings": {
"index": {
"number_of_shards": ...
1
vote
1
answer
39
views
Julia DataFrames: How to efficiently convert column data and column name to uppercase/lowercase at once?
I have a DataFrame that looks like this:
5×4 DataFrame
Row │ Col_1 Col_2 Col_a Col_z
│ Float64 Float64 String String
─────┼─────────────────────────────────────
1 │ 0....
1
vote
2
answers
61
views
Adding Characters to an Empty String in Python
I am attempting to have my program iterate over a user-inputted string and print it again, with a "u" in place of every uppercase letter, an "l" in place of every lowercase letter, ...
0
votes
0
answers
16
views
How do I create an Nginx rewrite to enforce lowercase urls?
I've been given a request from a client to ensure all visits to their site are to lowercase URLs following an external SEO audit.
For example they'd like www.example.com/How-We-Help to redirect with a ...
0
votes
1
answer
35
views
How to use Regex to lowercase catalogue values without any logic codes
For a loan domain we pass some catalogue values eg. if a customer is primary or secondary customer like that. So i need to check the values irrespective of uppercase, lowercase, camelcase. Software ...
-1
votes
1
answer
42
views
Case-insensitive comparison of lists [duplicate]
I want to make a code that to see if each new username has already been used in a website.
I have this code:
current_users = ['Rachel', 'Ross', 'Chandler', 'Joey', 'Monica']
new_users = ['Janice', '...
1
vote
1
answer
130
views
Regular expression for uppercase, lowercase and number
My task is to validate a string that must contain at least one lowercase and uppercase character and at least one number. I don't have to check the length of this string.
I'm trying to do something ...
1
vote
3
answers
54
views
AWK variables and functions syntax
I would like to remove "_" and ":" in the texts and then convert the texts into lowercase in AWK but couldn't get it working. Here's a simple data.txt file:
Count_Part:AA,1,2,3,4,5
...
0
votes
1
answer
61
views
Why the string.function() syntax in Python? (lower/upper function)
I would like to understand some level of intuition for why the lower() function in Python requires string inputs to come before the function rather than in the brackets. For example
name = "Bob&...
0
votes
0
answers
31
views
Lower case text in a column
I am new to python and I am trying to create a function that takes as input the original df and returns it with a column that contains tokenized, pos-tagged and lower cased versions of the original ...
-1
votes
1
answer
21
views
How can I return a list from a list of lists when searching a string and also force the comparison to lowercase?
I have a list of lists as such:
allTeams = [ [57, 'Arsenal FC', 'Arsenal', 'ARS'], [58, 'Aston Villa FC', 'Aston Villa', 'AVL'], [61, 'Chelsea FC', 'Chelsea', 'CHE'], ...]
userIsLookingFor = "...
1
vote
3
answers
37
views
Find lines in multiple files starting with text, and replacing with lowercase
I'm trying to find all files that contains lines that start with a specific string, and then set everything in that line after that to lowercase. I'm able to do parts of what I want but can't seem to ...
1
vote
2
answers
209
views
Check if all letter is uppercase or lowercase python, if there is one word in string is different print none
For input string S, print UPPER if string S contains only uppercase characters (may contain spaces), LOWER if string S contains only lowercase characters (may contain spaces), otherwise print out NONE....
0
votes
2
answers
48
views
how to find the count of Uppercase and lowercase letters in TCL
how to find the count of uppercase amd lower case in tcl
with this code im getting only ascii values
foreach character {H e l l o T C L} {
scan $character %c numeric
puts "ASCII character ...
0
votes
0
answers
27
views
Filesystems and upper/lower case characters in filenames
Needing to compact maximally the names of a lot of files in the same directory, I would like to use numbers and characters in these filenames.
0.png
1.png
..
9.png
A.png
B.png
..
00.png
..
It's ...
0
votes
1
answer
72
views
Compare paths & ignoring case of drive letter
I'm checking 2 program config file paths from the registry. Sometimes one gets stored with a lowercase c, the other with an uppercase C which then doesn't work with a simple string comparison.
What I ...
0
votes
3
answers
64
views
Why do sequence for loops don't seem to work well in Python?
I'm trying to convert every string in a list to it's lowercase format using this function:
def lower_list(strings):
for string in strings:
string = string.lower()
return strings
But ...
-1
votes
2
answers
110
views
How do I uppercase to lowercase and vice versa COMMENTS in C
Is there any way to do uppercase to lowercase and vice versa for COMMENTS?
For example:
*** input_file.c ***
#include <stdio.h>
/* My FIRST program */
void main(void) {
printf("Hello ...
0
votes
2
answers
26
views
string editing on specific request split.upper/.lower
I'm trying to figure out how to edit the below to have a option to convert lower/upper(abc = ABC) I'd like to have a specific input that it knows to convert to the other. so input might be "...
2
votes
3
answers
65
views
How to convert a letter to lowercase after a quotation mark?
How to convert a letter to lowercase which is in a string after a quotation mark?
Like this:
"Trees Are Never Sad Look At Them Every Once In Awhile They'Re Quite Beautiful."
should become
&...
0
votes
0
answers
13
views
How to I shorten this code to comply with the DRY (Don't Repeat Yourself) principle?
I want to take words a user provides, store them in a list, and then modify those words so that every other letter is capitalized. I have working code but it is repetitive. I cannot for the life of me ...
0
votes
1
answer
35
views
How do i make this code non case sensitive?
function openPage() {
var x = document.getElementById("search").value;
if (x === "Science") {
window.open("content/main/Science.html");
...
-1
votes
1
answer
122
views
upper to lower case in c++
I'm trying to transform a string of characters from lower to upper case and the other way round on c++. All this without using libraries, and using ascii code instead.
My problem is I don't know how ...
0
votes
3
answers
94
views
How to lowercase all values in dataframe except specific column
I've been searching around for a while now, but I can't seem to find the answer to this small problem.
I have this code to make a function for lowercase values:
df = {'name':['AL', 'EL', 'NAILA', '...
1
vote
1
answer
95
views
When executing a perl search and replace on the command line, how do I lower case a matched token?
I have a file with lines like
TEST=value
I would like to do a search and replace such that I replace the first token with its lower case equivalent. So the above would be transformed into
prefix/...
-1
votes
1
answer
27
views
Make lower case to a specific latter in javascript [duplicate]
please help me to make this string "SeLamAT PAGi semua halOo"
become this "Selamat Pagi Semua Haloo"
i lil bit confuse make a function
0
votes
1
answer
69
views
Making vowels in a charArray lowercase
First time posting here, so I have this assignment where we make a code that reads a file and writes it into another one, except in uppercase, however we also need to add a statement to exempt vowels ...
1
vote
1
answer
34
views
How do I make all words in a list of words lowercase in python? [duplicate]
I'm trying to make all entries in my list dictionary lowercase but I cant figure out a way to do this
def get_entire_word_list():
dictionary = []
f = open("dictionary.txt", "r")
...
2
votes
6
answers
106
views
how to replace uppercase and lowercase letters in words alternately in a sentence? Python
I am new to Python programming. I'm trying to learn about lists.
I want to create a new program that can convert each word into uppercase and lowercase letters alternately in a sentence.
I’m stuck ...
0
votes
0
answers
120
views
AttributeError in 'contains' attribute after lower() operation on str in pandas Series
pd.col.str.contains('something')
The above one works fine, giving Boolean values. However,
pd.col.str.lower().contains("something")
gives back an error stating:
AttributeError: 'Series' ...
0
votes
1
answer
98
views
Show lowercase url in .htaccess with uppercase file names
In my .htaccess file, I have this code:
RewriteMap tolowercase int:tolower
RewriteRule ^(.*)$ ${tolowercase:$1} [R=301,L]
From: htaccess Uppercase URL to lowercase
This change the url from uppercase ...
0
votes
1
answer
113
views
lower function inside replace() in Oracle SQL Problem
I am searching for a pattern "hello world" and replaced with Hello Bob.
Here I want to match all patterns of hello world. The problem is that we cannot match both patterns in replace ...
1
vote
1
answer
61
views
Lowercase the second match in a combination of words using Regex.Replace
In setting the last name of a person (I know this is a terrible job), I'm looking to lowercase the second match in a combination of any of the following words:
Van, Den, Der, In, de, het.
And repeat ...
0
votes
1
answer
78
views
Regex to find 4+ repeating lowercase letters and requiring 2+ numbers, special chars, and uppercase
I am putting together a regex for strong passwords and having issues figuring out how to bring the requirements together. They are:
2 or more capital letters
2 or more digits
2 or more special ...
1
vote
4
answers
1k
views
How do I check if a string contains both lowercase and uppercase letters in JS?
I want to write a function that checks if a string contains lowercase and uppercase letters. If both are present, it should return true, and if either are missing, it should return false.
function ...
1
vote
2
answers
188
views
Python: How do you make a list start with the lowercase strings?
I'm currently making a simple code that allows the user to input a sentence or a group of words and the program will sort the words alphabetically. This initial code works great but unfortunately, it ...
0
votes
0
answers
7
views
Lowercase Input Not Working with Exit Function of App
I am new to Java (and programming, in general) and am making a simple banking app. With this, I just made it so the user could also input lowercase letters. This works for everything besides when ...
0
votes
2
answers
45
views
What is the purpose of A_to_a in this string comparison?
somewhere in a code for comparison of two string I saw this:
#define A_to_a ('a'-'A')
...
for (i = 0; i < n; i++) {
if (!(word[i] == (tmpP -> word[i])) && !(word[i] == (tmpP -&...
1
vote
3
answers
205
views
Transform uppercase letters to lowercase and vice-versa using single parameter function (C++)
I have the trans function which uses a single parameter, has to be void, and returns through c the opposite case of a letter from a word input in main.
Example:
input: dOgdoG
output: DoGDOg
The ...
1
vote
0
answers
128
views
How to prevent change of case of user-defined components in ReactJS while using react-html-parser?
I am trying to convert below string rawJSX to JSX using react-html-parser.
import ReactHtmlParser from "react-html-parser";
function StrToJSX() {
let rawJSX = `<h1> Hello World! &...
0
votes
2
answers
148
views
In Python, how do I parse each word in a text file and make each word lowercase and remove special characters except for apostrophes?
This is the code I have so far. It lower-cases each word in the input file but I am unsure how to check and remove special characters, except for apostrophes, from the input file.
input("Please ...
0
votes
0
answers
45
views
How to force lowercase in Nginx block?
I have a nginx module which is redirecting the user to different folders depending on the URL. The logic is this: mysite.site/folder1, mysite.site/folder2, mysite.site/folder3 etc. What I want to do ...
0
votes
2
answers
73
views
Copying string into set<string> in lowercase?
I have the following small and easy code:
int main(int argc, char *argv[]) {
std::vector<std::string> in;
std::set<std::string> out;
in.push_back("Hi");
in....
-2
votes
1
answer
46
views
Java - Method ignores Upper -> Lowercase tranformation
A question about ASCII and java:
I am reading files using java, all of them containing Uppercase letters, which I am supposed to convert into lowercase, in order to treat them with another algorithm, ...
1
vote
1
answer
62
views
How to change input.value to capitalize before submitting to array Javascript
I have a button that submits a input.value to the empty array.
The function is checking if there isnt' any matching names inside the array and throws the error if there is, but not if there are ...
0
votes
1
answer
107
views
Permutation lowercase and uppercase in python
I want this result but not by string ,by input() and Number of characters unknown!
mystring = 'abcd'
for a in (mystring[0].upper(), mystring[0].lower()):
for b in (mystring[1].upper(), mystring[1]....
0
votes
3
answers
196
views
Git/Windows - Case sensitivity issues when checking out a branch (and pulling/merging a branch). Affected files are all lowercase in Windows Explorer
Having a really strange issue with git and Windows regarding case sensitivity.
I am not a master at git but I'm also not a beginner. Just want to throw that out there.
Problem I am facing:
Clone a ...