Questions tagged [letters]

251 questions
1
vote
2 answers

php check if string contains some letters/numbers

I have some string in which I would like to check if contains some letters or numbers. Those letters are from a-z, A-Z and all numbers. So this is the example: $goodstring = "abcdefg%$#%&asdqwe"; $badstring = "%$#&%#/&/#$%!#-."; check if $goodstring…
user1257255
  • 1,161
  • 8
  • 26
  • 55
0
votes
1 answer

asp.net, how do you separate a repeater using page break

I'm trying to create a batch of letters using a repeater but so far when I convert the letters to PDF the contents of the letters are written one after the other on the same page. I want to split the repeater up so that each letter has its own…
0
votes
2 answers

Remove accents - Replace accented letters by letters without accents with str_replace

str_replace does not replace accented letters by letters without accent. What's wrong with that? This returns the expected result:
BobGCA2
  • 125
  • 10
0
votes
2 answers

counting letters (only letters) in a long string (python 2.72)

i need to write a function which receives a long string, and puts into a dictionary each letter, and it's it's appearance frequency in the string. iv'e written the next function, but the problem it doesn't ignore whitespaces, numbers etc.. iv'e been…
Orr
  • 57
  • 1
  • 8
0
votes
6 answers

Python Removing Letters From a String

This is a homework assignment. I just need a nudge. I'm trying to create a loop in which the letters of a string will be removed when it is beyond a certain number. Example: Enter Your String: David Enter Your Amount: 4 Returns: Davi What I've made…
HighAllegiant
  • 61
  • 3
  • 9
0
votes
1 answer

captcha modify six letters

i have following captcha code:
grigione
  • 697
  • 2
  • 11
  • 37
0
votes
1 answer

how do you make a password generator in command prompt that uses letters?

I know how to create a password generator in command prompt but it only uses numbers. Is there a way to make it generate letters as well? for example, ASDE-DASD-DWAS-AWDS.
mendez
  • 25
  • 1
  • 4
0
votes
1 answer

Last two alphabets of a link are showing twice in internet explorer

The Last two alphabets of a link placed in footer are showing twice/repeated in Internet explorer from nowhere.... I am using div based design in xhtml. How could I get rid of this error?
MAQ
  • 1
  • 1
0
votes
3 answers

Python search HTML document for capital letters

So I have all these html documents that have strings of capital letter in various places in alt tags, title tage, link text...etc.
  • hackthisjay
    • 177
    • 4
    • 22
  • 0
    votes
    1 answer

    Regex to allow apostrophe only for words ending with s

    I'm using this Regex ^[a-zA-Z0-9]{2,20}$ to allow the following rules: - Letters a-z - Letters A-Z - Numbers 0-9 - Input length must be at least 2 characters and maximum 20 characters. I also want to allow apostrophe only at the end of words ending…
    jkigel
    • 1,592
    • 6
    • 28
    • 49
    0
    votes
    2 answers

    Creating a word from a random set of specific letters

    I'm trying to generate a word with a specific set of letters. The first letter of the word must contain the letters P,G,T,K the second A,E,I,O,U I have tried generating them with the code blow with no success. Once I store all of these random…
    0
    votes
    2 answers

    How to convert matrix 7x7 to char?

    I have matrix 7x7 which consist of 1 and 0 only. How I can detect some letter from this matrix? For example: 0000000 0100010 0100010 0111110 0100010 0100010 0000000 This must be converted as H character. Thank you.
    0
    votes
    1 answer

    Delphi Android, making first letters uppercase problem. But not on VCL

    I tried to look at some steps about making the word automatically become uppercase letters in the first letter. I used to use it on VCL and it works very well, but why on mobile applications it doesn't work properly. I use this code, but in edit2,…
    Alfred
    • 103
    • 9
    0
    votes
    2 answers

    Take out numbers from String without list

    I have to make a (def) program using Python language where user inserts a string ( up to 8 digits numbers (0-9) and letters (a-z) together), program has to find out how many numbers are there in a string. Program will calculate the sum and average…
    0
    votes
    6 answers

    Find out if a string has a number in a specific position

    Is it possible to have a string for example: var myText = "AB12CDE" and then check to see if 3rd and 4th letters are numbers and if not change it to a number. So if the above text ended up being: "ABIZCDE" I would be able to change IZ to 12 but…
    Tony Merritt
    • 1,177
    • 11
    • 35