Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Simple functions - Check if a character is a Letter or a Number

Author
Message
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 27th Dec 2006 02:46


Tada!

Vampiric
18
Years of Service
User Offline
Joined: 30th Oct 2006
Location:
Posted: 28th Dec 2006 14:58 Edited at: 28th Dec 2006 14:58
the only problem is that it would say that 11 isn't a number

All bow down to evil
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 28th Dec 2006 21:36
Yup, I know, wasn't designed for that, but more for taken a long string of letters and numbers, and checking each letter and be able to split a string up, i.e.

"I am Zotoaster, I am 64746 years old, my friend is 64757 years old, 11 years older than me"

Into-

"I am Zotoaster"
","
"I am"
"64746"
"years old"
","

etc...

Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 29th Dec 2006 01:17
It's most useful I would say for maybe passwords or something, making sure that what you enter is only a number, or only a letter, for example:



Login to post a reply

Server time is: 2024-11-22 23:48:44
Your offset time is: 2024-11-22 23:48:44