Alphanumeric Characters.

Deploying to Linux? Get penguinated here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 228
Joined: Tue Aug 05, 2014 10:07 am

Alphanumeric Characters.

Post by Googie85 »

Hii Guys!

I am using base64decode and want to determine if the result is alphanumeric.

Many Thanks,

Googie.
Emily-Elizabeth
Posts: 218
Joined: Mon Jan 03, 2022 7:10 pm
Contact:

Re: Alphanumeric Characters.

Post by Emily-Elizabeth »

You can always use

Code: Select all

is a number
to rule out straight numbers.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10511
Joined: Wed May 06, 2009 2:28 pm

Re: Alphanumeric Characters.

Post by dunbarx »

Or (and this may be overcomplicated unless your goal is to identify purely alphanumeric results):

Code: Select all

...
get yourBase64decodeResults
repeat for each char tChar in it
if tChar is not in "0123456789abcdefghijklmnopqrstuvwxyz" then
  answer "notAlpha:" && tChar
  exit to top
end repeat
....
Craig
Post Reply