Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will Alphanumeric contain _ and space?

Tags:

testing

If a field is defined as alphanumeric, are spaces and underscores (_) allowed?

I hope they are not.

Can anyone confirm?

like image 834
ChanGan Avatar asked Dec 14 '11 17:12

ChanGan


People also ask

What does alphanumeric contain?

Alphanumeric, also referred to as alphameric, is a term that encompasses all of the letters and numerals in a given language set. In layouts designed for English language users, alphanumeric characters are those comprised of the combined set of the 26 alphabetic characters, A to Z, and the 10 Arabic numerals, 0 to 9.

What is not included in alphanumeric?

Non-Alphanumeric characters are the other characters on your keyboard that aren't letters or numbers, e.g. commas, brackets, space, asterisk and so on. Any character that is not a number or letter (in upper or lower case) is non-alphanumeric. These could be grouped as Punctuation characters !

Does alphanumeric contain symbols?

An alphanumeric password contains numbers, letters, and special characters (like an ampersand or hashtag).

How do you write alphanumeric?

Alphanumeric characters are the numbers 0-9 and letters A-Z (both uppercase and lowercase). An alphanumeric example are the characters a, H, 0, 5 and k. These characters are contrasted to non-alphanumeric ones, which are anything other than letters and numbers.


1 Answers

Alphanumeric characters by definition only comprise the letters A to Z and the digits 0 to 9. Spaces and underscores are usually considered punctuation characters, so no, they shouldn't be allowed.

If a field specifically says "alphanumeric characters, space and underscore", then they're included. Otherwise in most cases you generally assume they're not.

like image 195
BoltClock Avatar answered Oct 15 '22 11:10

BoltClock