Questions tagged [alphabetic]

25 questions
0
votes
1 answer

JavaScript checking for whitespace and invalid characters

I am trying to check whether or not a certain string contains only A-Z, hyphen, apostrophes and accents (e.g. umlauts, etc). I have the following but it is not working. var lastNameValidation =…
user3600952
0
votes
1 answer

Checking if user input is alphabetic

I don't know how to check if a user's input is alphabetic. I want the program to: read the user input check if it's alphabetic output the name again I tried to use isdigit and isalpha but I couldn't get it to work. //checking if name is…
metr1xx
  • 1
  • 4
0
votes
1 answer

Change sorting order to AaBbCcDd

I have several files in a directory in my unix system that I need to sort. The problem I'm having is that when using the sort -f command it sorts in the order a A b B c C etc. ls does the same ordering. Is there a way I can make it sort with the…
-1
votes
2 answers

Removing Alphabetic Characters from a String

I need to remove the "ML" portion of "ML 11/07" but I want to keep the numbers as well as the slash. Here is my current code (Google Apps Script) var sec=second.replace("[^\\d.]", ""); tss.getRange(counter2, 5).setValue(sec);
Louis
  • 1
  • 1
-1
votes
4 answers

Splitting a string in multiple values based on string or alphabetic letters?

I hope I can explain what I'm trying to achieve: In PHP I'm receiving content from a remote website and I want to proces this data. I now have +- 300 strings like this: $string=abcdefg123abcdefg I would like to split this string in 3…
Roy
  • 73
  • 1
  • 1
  • 4
-1
votes
2 answers

Android listview display as alphabetic order

I got the response from Json and need to display the result as in ordered name. After implementing the Hashmap I realized that it was not sorted alphabetically How do i do that? public ArrayList> contactList= new…
user3886658
  • 53
  • 1
  • 7
-1
votes
3 answers

How to create writing simulation with java?

I need to come up with a way to make three big letters look like they're being typed/written. I can create Letters with paintComponent(); I need ideas/example on how to accomplish this? This is what i already done. public class LetterWriter extends…
michdraft
  • 556
  • 3
  • 11
  • 31
-2
votes
1 answer

Capitalise and Sort in Python

I have created a small function that sorts the rows in a CSV File alphabetically. However, it sorts them capitalised vs not capitalised. Is there anyway to capitalise all of the entries and then sort them ? import csv def CSV_alphabetisch(): …
-2
votes
2 answers

c++ How to extract the whitespace between words if there is one

I've got two questions. I need to write a program that extracts all non-alphabetic characters and displays them, then removes them. I am using isalpha which is working for symbols, but only if the input string has no spaces like "hello world" but if…
Paralytic
  • 5
  • 3
-4
votes
1 answer

Read a file of unknown size/length, strip non-alphabetic chars, and change uppercase to lower

then it has to be printed to the screen 80 chars per line. this is done in c. My coding is super weak and don't know where to begin. Any help is appreciated
zvbat
  • 3
  • 3
1
2