Questions tagged [letters]
251 questions
0
votes
2 answers
How to validate username using regexp?
How validate username using regexp ?
For English letters, Numbers and spaces I am using :
/^[a-zA-Z]{1}([a-zA-Z0-9]|\s(?!\s)){4,14}[^\s]$/
How can i add arabic letters ?

faressoft
- 19,053
- 44
- 104
- 146
0
votes
1 answer
Python - how do I create a list of letters from a string with special characters?
I want to create a list of letters from this string in python:
string = 'utf✮fff'
I have tried this:
>>> string = "utf✮fff"
>>> print list(string)
['u', 't', 'f', '\xe2', '\x9c', '\xae', 'f', 'f', 'f']
However it should look like this:
['u', 't',…

Daniel Tremer
- 190
- 9
0
votes
3 answers
java - Count letter occurrences in strings into int array of 26
I need to take multiple lines of text and count the occurrences of each letter in every line. The last line must end in a period. I'm asked to make an int array of length 26 where arrayName[0] = number of a's, arrayName[1] = number of b's, etc and…

Gatekeeper15
- 3
- 1
- 3
0
votes
3 answers
Better way to make lower and upper case letters have the same value in object other than listing them all out?
So I made a basic GPA calculator, and it works great. My question though is, is there an easier/cleaner way to make it so I don't have to list the lower and upper case grade values in my object? Because I want to make it so no matter if it's a lower…

user6901580
- 33
- 5
0
votes
1 answer
Letters/Characters on iPhone Swapping Position
A website we have recently built is behaving rather oddly on iPhones - certain letters in a blog post are displaying in the wrong order.
They appear as intended on desktops and Android devices, but on iPhones the letters F and L are swapping…

Christopher McCool
- 51
- 4
0
votes
1 answer
Symfony - Manjaro Linux
Im using Symfony on Manjaro. And getting this error on default project;
Neither the property "ip" nor one of the methods "ip()", "getip()"/"isip()" or "__call()" exist and have public access in class "Symfony\Component\HttpKernel\Profiler\Profile"…
0
votes
1 answer
Password restrictions to support international travellers
Yes, using any restrictions on the letters that a user can put in his password weakens security. But on the other hand: have you ever tried the Euro sign (€) on a Thai keyboard? Or a German Umlaut (Ä) on an English keyboard?
For this reason I have…

Eddie
- 109
- 1
- 11
0
votes
1 answer
How can I create animated letter increments of a given word similar to the way animated number counters work?
I'm creating an "animated letter incrementer" that takes any given word and increments each letter of that word starting from A.
Example:
Word = Dog
D - Increments from A to D [A, B, C, D]
O - Increments from A to O [A, B, C, D, E, F, G, H, I, J,…

cpcdev
- 1,130
- 3
- 18
- 45
0
votes
1 answer
Trying to write the delta-O-18 sign in Python
I am new to python and It seems like a small issue, but I was unable to find the answer for it on the web.
I want to write the delta O 18 sign, the one from the famous isotope ratio expression, but with no luck so far:
Basically, I need to make…

Nir
- 1
0
votes
2 answers
How to remove 3 or more consecutive letters in java into 2 consecutive letters?
I'm trying to process strings with repeated chars in order to find the correct word in a dictionary.
The approach I must use is to find words with 3 or more consecutive letters and remove them into 2 consecutive letters.
Then I'll look for in the…

user1201779
- 35
- 5
0
votes
1 answer
how can I, character and words count from string to make a line break insert in android
how can I, character and words count from string to make a line break insert in android
I have a text output of words with max 150 letters and want the all 50 letters carried a line break without separating the word.
how can I implement it?
here is…

Dennis Tieke
- 497
- 5
- 6
0
votes
1 answer
regexp for combination of letters,special characters and numbers
from the below set of rows i need
rows with 3 letters
rows with special characters
rows with combination of numbers and special characters,letters
from below records..
OJH,
WV],
2V,
W.W,
V,
@A,
AL,
AS,
1234,
1,
23
i need to select…

Aslam V Abdul Azees
- 13
- 2
0
votes
3 answers
How do you double each letter in a string using a for loop and an if statement in java
I need to double each letter in a string using a for loop and an if-then statement. How can you comb through a string and test if each character is a letter or a symbol like an exclamation point? And then print the string back out with each letter…

Typag4
- 19
- 1
0
votes
2 answers
recursively duplicate letters in word - 'abcd' -> 'aabbcc'
I just learned what recursion is and I am trying to find a way to duplicate letters in a word recursively. It's just a way to practice. If there is a better way to do it without recursion, I am open to any feedback. However, I'm primarily trying to…

yvtfg4
- 11
- 1
- 6
0
votes
2 answers
Lowercase letters tail height (g, j, p, q, y)
This question is a little bit odd. I have to make sure of the distance between letters above and below. Now when calculating a letter height in Pixel, say font size = 14px does this mean my alloted pixel height for a letter is 14 pixels? What…

rob waminal
- 18,117
- 17
- 50
- 64