Questions tagged [alphanumeric]

Alphanumeric refers to strings containing a combination of letters and digits.

Alphanumeric refers to strings containing a combination of letters and digits.

In the context of English language, it contains characters lowercase a to z, uppercase A to Z and digits 0 to 9. It may contain more letters in other languages.

707 questions
6
votes
5 answers

How to sort number in alphanumeric

Input: SHC 111U,SHB 22x,, SHA 5555G Needed output: SHB 22X, SHC 111U, SHA 5555G I have to sort only Vehicle no in the Parking Area not prefix and suffix letter
drop
  • 61
  • 1
  • 4
6
votes
1 answer

Efficient hash function for low-entropy alphanumeric strings

I'm trying to write a (perfect) hash table for compressing the mapping from unicode codepoint names to their codepoint number (mapping the second column to the first column). As you can see there, the possible inputs are very restricted, in fact…
huon
  • 94,605
  • 21
  • 231
  • 225
6
votes
1 answer

Extracting alpha and numeric parts from a column

I have a table tab1 with a column col1 that has compound alpha-then-numeric values, like this: abc123 xy45 def6 z9 I need to extract the values as separate columns in a query, with the numeric part in a column of integer datatype. If the two values…
Bohemian
  • 412,405
  • 93
  • 575
  • 722
6
votes
5 answers

Sorting VARCHAR column with alphanumeric entries

I am using SQL Server, the column is a VARCHAR(50) and I want to sort it like this: 1A 1B 2 2 3 4A 4B 4C 5A 5B 5C 5N 14 Draft 21 22A …
terezzy
  • 243
  • 1
  • 3
  • 8
6
votes
2 answers

remove all non-alphanumeric characters from lua string

I checking string for a non-alphanumeric char. if(str:match("%W")) then --make str alpha-numeric end How to remove all non-alphanumeric chars from string using lua?
polski
  • 61
  • 1
  • 1
  • 2
6
votes
4 answers

Elegant way to count alphanumeric chars in a string?

I am looking for an elegant way, preferably a short linq expression, to count how many alphanumeric chars a given string contains. The 'boring' way I do it now is this: int num = 0; for (int i = 0; i < password.Length; i++) { if…
magnattic
  • 12,638
  • 13
  • 62
  • 115
6
votes
3 answers

Return rows where first character is non-alpha

I'm trying to retrieve all columns that start with any non alpha characters in SQlite but can't seem to get it working. I've currently got this code, but it returns every row: SELECT * FROM TestTable WHERE TestNames NOT LIKE '[A-z]%' Is there a way…
XSL
  • 2,965
  • 7
  • 38
  • 61
5
votes
5 answers

How should I generate a random alphanumeric initial password for new users?

We have to automatically import a large list of users with some data into a running system. For an initial password I want to update the list (csv format at the moment) with a random alphanumeric key (8 digits). When inserting it with a special…
Xn0vv3r
  • 17,766
  • 13
  • 58
  • 65
5
votes
6 answers

How to generate unique six digit alpha-numeric code in Ruby

I need to generate a unique six digit alpha-numeric code. To save in my database as voucher no: for every transaction.
Amal Kumar S
  • 15,555
  • 19
  • 56
  • 88
5
votes
9 answers

How to sort an alphanumeric array in ruby

How I can sort array data alphanumerically in ruby? Suppose my array is a = [test_0_1, test_0_2, test_0_3, test_0_4, test_0_5, test_0_6, test_0_7, test_0_8, test_0_9, test_1_0, test_1_1, test_1_2, test_1_3, test_1_4, test_1_5, test_1_6, test_1_7,…
user682932
  • 53
  • 1
  • 3
5
votes
3 answers

Regex to extract ONLY alphanumeric words

I am looking for a regex to extract the word that ONLY contain alphanumeic characters: string = 'This is a $dollar sign !!' matches = re.findall(regex, string) matches = ['This', 'is', 'sign'] This can be done by tokenizing the string and evaluate…
GRoutar
  • 1,311
  • 1
  • 15
  • 38
5
votes
2 answers

Delete until whitespace in Emacs

Is there an Emacs function to delete (forward or backwards) until the first whitespace? For example, I have the following line, and the cursor is marked by the caret: someword ?(&)!* morewords ^ I want to delete the backwards the…
Little Bobby Tables
  • 5,261
  • 2
  • 39
  • 49
5
votes
1 answer

Where can I find the definition of the alphanumeric set for CODA spec?

The CODA specification refers to alphanumeric, but I cannot find where is the set of allowed characters defined. Inspecting sample CODA files, emitted by reliable Belgian banks, I can see letters, numbers, parenthesis, dash, dot, colon, slash,…
arhak
  • 2,488
  • 1
  • 24
  • 38
5
votes
2 answers

Coding a general 4 digit alpha-numeric series

Trying to code a general 4 digit alphanumeric series in PHP. Pattern is as follows 0000 0001 .... .... 9999 A000 A001 .... .... A999 B000 .... .... Z999 AA00 .... .... AA99 AB00 .... .... ZZ99 AAA0 .... .... AAA9 AAB0 .... .... ZZZZ I was trying…
Shivanshu Gupta
  • 248
  • 1
  • 14
5
votes
1 answer

Invalid Alphanumeric 'From' address with Twilio SMS

I am trying to send an SMS with Twilio using the alphanumeric 'from' address. I'm in Australia, sending to an Australian mobile number. My cURL request looks like this: curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/
dave
  • 1,127
  • 2
  • 10
  • 26