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
-3
votes
1 answer

Read Alphanumeric with REGEX - C#

I have this code and its posible to read numbers with regex (from an XML File), but i want to read an Alphanumeric string , and get the value as the numeric one: string c1 = File.ReadAllText("C://XMLS/128839_SAG101208EJ4_10006_16_13-01-2017.xml"); …
-3
votes
1 answer

Total number of alphanum values in python

I am making a code in which every character is associated with a number. To make my life easier I decided to use alphanumeric values (a=97, b=98, z=121). The first step in my code would be to get a number out of a character. For example: char =…
Benjamin Chausse
  • 1,437
  • 2
  • 10
  • 20
-3
votes
1 answer

InputMismatchException when reading alphanumeric user input from java.util.Scanner

import java.util.Scanner; public class StrinExp { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int i = 0; String a = null; System.out.println("Enter username"); …
-3
votes
1 answer

Auto generation of code

I want to auto generate an alphanumeric code in ASP.net using C#. I want that first 3 words must be characters and then 7 must be integers.
-3
votes
4 answers

Regular expression with alpha numeric and need to check length of the string

I have a regular expression which compares if a string is having both alpha and numerical values. But i need to compare if the string is having any special characters and length of the string should be 6. my current regular expression is $val =…
user3408779
  • 981
  • 2
  • 19
  • 43
-3
votes
2 answers

how to remove non-alphanumeric characters except \ / @ + -:, | #

I have import re cadena = re.sub('[^0-9a-zA-Z]+', '', cadena) how to remove non-alphanumeric characters except this \ / @ + -:, | #
Rulogarcillan
  • 1,130
  • 2
  • 13
  • 23
-3
votes
2 answers

password alphanumeric php without use regex

i just try like this. for($i=0;$i<$length;i++) { if(!ctype_alpha($password[$i]) { header("location:regist.php?err=Password not contain letter"); } else if(!is_numeric($password[$i])) { …
user3551629
  • 9
  • 1
  • 6
-3
votes
1 answer

regex for validating only alphanumeric characters full stop, comma, colon, and semicolon

I am very new to regex and JavaScript. I need a regex for validate only alphanumeric characters and full stop (.), comma(,), colon(:), and semicolon(;).
cosmichy
  • 15
  • 1
  • 1
  • 4
-4
votes
1 answer

random alphanumeric string into hexadecimal in Python

I'm trying to turn an alphanumeric string into a hexadecimal number. The following code works as intended... A = "f8g9dsf9s7ff7s9dfg98d9fg97s06s6df5" B = int(A, 16) When I try create the alphanumeric dynamically it breaks and doesn't get converted…
user1432290
  • 151
  • 1
  • 3
  • 12
-4
votes
2 answers

Sorting of alphanumeric in java

I want to sort alpha-numeric values as if my input is [a1, b1, c1, aa1, bb1, cc1, d1, e1] Output should be in this order- a1,b1,c1,d1,e1,aa1,bb1,cc1 I have used this code public class coll { public static int comparator(String s1, String s2)…
Nix
  • 9
  • 1
  • 2
-4
votes
2 answers

AplhaNumeric String sum calculation in java

INPUT=Sd98TR2asd100 OUTPUT=98+2+100=200 Can any one show me any codes or logic how to solve this in java without using in build functions
-4
votes
2 answers

Regex in PHP that allows alphanumeric with one space only

How can I build a regex that allows alphanumeric and only one space like : MM56M pass MM 54M pass MMM 5 555555 pass LPOLKG pass MM 5T YU does not pass Thanks
oussama kamal
  • 1,027
  • 2
  • 20
  • 44
-4
votes
1 answer

Need PHP alphanumeric count starting from A001 to Z999

Need PHP alphanumeric count that starts from A001 and goes uptill Z999 It starts from A0001 and goes on like A002, A003 ..... and after A999 - it changes to B001 and so on till Z999 how can this be done ... ? Can anyone here help me out ..? thanks…
-5
votes
2 answers

find the input is alphanumeric or not with using #define macro preprocessor in c

this is the question what asked in my exam is: "write cource code of a character taken from user is alphanumeric or not." alphanumeric means--> A-Z | a-z | 0-9 (alphabetic or numeric) if it is return true or someting. help me to solve this question…
Sillyon
  • 45
  • 1
  • 2
  • 11
-6
votes
4 answers

What is a best way to increment alphanumeric ID by certain value in C#?

What is a best way to increment alphanumeric ID by certain value in C#? For example: We've 345FAS310E575896325SA and we're going to increment by 123 , so we have as result: 345FAS310E575896325SA123 Or we've 345FAS310E575896325SA123 and increments by…
Slaine
  • 41
  • 1
  • 9
1 2 3
47
48