Questions tagged [letter]

a character representing one or more of the sounds used in speech; any of the symbols of an alphabet.

448 questions
3
votes
5 answers

Convert Number to Corresponding Excel Column

I need some help in doing a logic that would convert a numeric value to corresponding MS Excel header value. For example: 1 = "A" 2 = "B" 3 = "C" 4 = "D" 5 = "E" ......... 25 = "Y" 26 = "Z" 27 = "AA" 28 = "AB" 29 = "AC" 30 = "AD" ......... Would…
Batuta
  • 1,684
  • 17
  • 48
  • 62
2
votes
4 answers

regex pattern java symbols

I am looking for a regex pattern in Java that corresponds to all characters except the letters a to z. In other words, I want a regex pattern that corresponds to symbols such as !"#¤%&/()=?`´\}}][{€$@ Or some way to trim a string into letters…
James Ford
  • 949
  • 4
  • 12
  • 25
2
votes
2 answers

How to check that string contains letter in any language?

My current regex is /^[a-zA-Z]+( [a-zA-Z]+)*$/. It works for names like: John Smith Anyway, the site is international and name could be like this, for example: Jānis Bērziņš It's a valid name, but regex will fail to validate it because of ā, ē and š…
daGrevis
  • 21,014
  • 37
  • 100
  • 139
2
votes
2 answers

How to use vertical bars "|" (pipes) in a title, header as a string?

A page has the title "Systemadministrator (m/w) | Dresden". I use a vertical line (pipe) letter. When I render the title in typo3 (via dataWrap) it will only show "Systemadministrator (m/w)Dresden" (without the vertical line letter). Is it possible…
Tomkay
  • 5,120
  • 21
  • 60
  • 92
2
votes
1 answer

Extracting first letter from specific vector in dataset in R

I am working in R with a babyname dataset. The data set contains a column called name: babies1900$name. I know how to extract the last letter from each row in vector name. last.letter.1900 <- substr(babies1900$name, nchar(babies1900$name), …
akz
  • 1,865
  • 2
  • 16
  • 13
2
votes
2 answers

How to remove all special characters and letters from column in DataFrame in Python Pandas?

I have DataFrame like below in Python Pandas ("col1" is data type string): col1 ----- 1234AABY332 857363opx00C*+ 9994TyF@@@! ... And I need to remove all special characters like: ["-", ",", ".", ":", "/", "@", "#", "&", "$", "%", "+", "*", "(",…
dingaro
  • 2,156
  • 9
  • 29
2
votes
1 answer

jquery display letter one by one with time out

I tried to split alle letters and display one by one with timeout. I found some solution but they seem not working for me. This script appends a complete layer (word) but jumps over the each loop. The message is a string named…
sanktusm
  • 37
  • 4
2
votes
3 answers

Regex for first eight letters and last number

Please help me compose a working regular expression. Conditions: There can be a maximum of 9 characters (from 1 to 9). The first eight characters can only be uppercase letters. The last character can only be a digit. Examples: Do not…
2
votes
2 answers

Lua How do I add a space between small and capital letters

I have a function to put the first letter of a string into uppercase. function firstToUpper(str) return string.gsub(" "..str, "%W%l", string.upper):sub(2) end Now I need a function to add a space between small and big letters in a string…
Karto1695
  • 21
  • 1
2
votes
3 answers

How to check if input string contains specific letters and is divisible by 3 in Python

I am writing a program that should check if: a user input string contains a specific word OR contains 4 designated characters and is divisible by 3. I can get the specific string check and the divisibility check to work but I can't seem to get the…
2
votes
2 answers

How do I print the overlap value from two lists by trimming the first 3 letters using Python 3

My goal is using Python 3 to check if there are any top 3 letters that overlap between List_A and List_B, and print the overlap data from List_B. List_A = ["apple123","banana3","345banana","cat123","apple456"] List_B =…
cjeng2
  • 23
  • 3
2
votes
1 answer

Why does encryption code gives question mark while text contains the letters after s and key is 13?

So, I am writing an encryption code. My code takes the word or any message and also asks user to enter a key. The end output is the encrypted message. For example: Please enter the text you want to encrypt: hello Enter the key: 4 The encrypted text…
user15380805
2
votes
4 answers

Python - removing repeated letters in a string

Say I have a string in alphabetical order, based on the amount of times that a letter repeats. Example: "BBBAADDC". There are 3 B's, so they go at the start, 2 A's and 2 D's, so the A's go in front of the D's because they are in alphabetical…
user15245150
2
votes
2 answers

letter numbers of all words in a given text and sorting by few letters to many

i need to use for example sentences in tidyverse and taking 5 sample. after taking those 5 sample i need a function that finds letter numbers of all words in that sample and sort the text according to those numbers from words with few letters to…
AksLepis
  • 23
  • 3
2
votes
2 answers

Create a new column with letters following the number of rows

I would like to create a new column with letters, following the number of rows in the data frame. Data: set.seed(42) df = data.frame(matrix(rnorm(20), nrow=10)) df X1 X2 1 1.37095845 1.3048697 2 -0.56469817 2.2866454 3 …
bttomio
  • 2,206
  • 1
  • 6
  • 17