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
5
votes
5 answers

Django: Generate unique 8 character alphanumeric ID string on form submission

Could someone please help me create a field in my model that generates a unique 8 character alphanumeric string (i.e. A#######) ID every time a user makes a form submission? My models.py form is currently as follows: from django.db import…
user2798841
  • 291
  • 1
  • 4
  • 15
5
votes
1 answer

Sort rows in data.table (rendered with the DT package) in alphanumeric order

I'm trying to figure out if I can sort rows in a data.table rendered with the DT package in alphanumeric order. I've searched for previous examples but, it seems like there is no way to do that. Can anyone help lead me to the right direction?
kgui
  • 4,015
  • 5
  • 41
  • 53
5
votes
2 answers

Creating Oracle sequence that starts with alphanumeric

I want to create sequence to start with character inv and increment by 1 The values to be INV01 INV02 INV03 etc... CREATE SEQUENCE invoice_nun START WITH "INV" INCREMENT BY 1
Francis John
  • 171
  • 2
  • 4
  • 13
5
votes
5 answers

Java remove all non alphanumeric character from beginning and end of string

I know how to replace ALL non alphanumeric chars in a string but how to do it from just beginning and end of the string? I need this string: "theString," to be: theString replace ALL non alphanumeric chars in a string: s =…
Mike6679
  • 5,547
  • 19
  • 63
  • 108
5
votes
3 answers

Regular expression for accepting alphanumeric characters (6-10 chars) .NET, C#

I am building a user registration form using C# with .NET. I have a requirement to validate user entered password fields. Validation requirement is as below. It should be alphanumeric (a-z , A-Z , 0-9) It should accept 6-10 characters (minimum 6…
Madhu
  • 147
  • 1
  • 2
  • 11
5
votes
5 answers

How can I grab the highest value in alphanumeric list using Python?

If I have a list of strings such as ["A", "B", "1", "0", "C", "2"], how can I have Python elegantly grab the "highest" value (2) of that list? For example, if the list above were to be sorted from lowest to highest, it would be [A, B, C, 0, 1,…
user3158105
  • 51
  • 1
  • 2
5
votes
3 answers

allow only letters and spaces validate jquery

I have this code: $(document).ready(function(){ jQuery.validator.addMethod("lettersonly", function(value, element) { return this.optional(element) || /^[a-z]+$/i.test(value); }, "Only alphabetical characters"); But if…
Beb Pratza Ballus
  • 221
  • 1
  • 5
  • 14
5
votes
1 answer

How to generate a continuous string?

I want to generate, in python (without a dictionary), a list of string from aaa-zzz and then output a txtfile such as this (note, the ... is short for the strings in between): aaa aab aac aad ... aaz aba abb abc abd ... aaz ... zaa ... zzy zzz The…
alvas
  • 115,346
  • 109
  • 446
  • 738
5
votes
2 answers

Turing Complete Alphanumeric x86 Instruction Set (Subset)

I am looking to create a minimal, computationally universal subset of alphanumeric x86 opcodes. Eventually I want the subset to contain as few instructions as possible, and if there are multiple minimal subsets I want to know that as well. The…
cytinus
  • 5,467
  • 8
  • 36
  • 47
5
votes
5 answers

Validating Alpha-Numeric values with all Special Characters

i want to validate my text field with below: 1. alpha-numeric 2. And all special characters i am not good in regex can anyone help me out creating a regex for above things.
Abbas
  • 4,948
  • 31
  • 95
  • 161
4
votes
1 answer

Using alphanumeric mode to encode URL in QR-code?

I need to build a QR-code for my url as small as possible - it is short enough to use shorteners (and I don't want to be dependent to their reliability). HTTP: // SUBDOM.DOMAIN.EU 8-bit byte mode is too place-wasting, I can reach Version 2 there,…
ojinmor
  • 133
  • 3
  • 10
4
votes
4 answers

Naturally sort a list of alpha-numeric tuples by the tuple's first element in Python

A previous stackoverflow question explains how to sort a list of strings alpha-numerically. I would like to sort a list of tuples alphanumerically by the tuple's first element. Example 1: >>> sort_naturally_tuple([('b', 0), ('0', 1), ('a',…
paragbaxi
  • 3,965
  • 8
  • 44
  • 58
4
votes
3 answers

Trim input field value to only alphanumeric characters/separate spaces with . with jQuery

So I'm trying to have an input field where I can enter any characters, but then take the inputted value lowercase it, remove any non alphanumeric characters, leaving "." instead of spaces. For example, If I enter: Earth is 70% water, -!*#$^^ & 30%…
Maverick
  • 1,123
  • 5
  • 16
  • 30
4
votes
3 answers

increment alpha numerically values

Like the title suggests I need to do something like so... $i++;//we all know this. $value = 'a'; increment($value);// i need this functionality //output string [ b ] ///here are some more samples, to help you understand... increment('b');…
Val
  • 17,336
  • 23
  • 95
  • 144
4
votes
5 answers

How to increment alphanumeric number in python?

I am creating a passkey of 16 alphanumeric characters where I am generating starting 4 digits with A001, A002, A003 till A999. Once it goes till A999, the alphabet will auto increase to B and digits will again start with 001. And the same process…
rajat maan
  • 171
  • 11