summaryrefslogtreecommitdiff
path: root/progs/a259.py
blob: 1f54c7a4c3e9de21a03e1cd4e1dc03f13b9b313d (plain)
1
2
3
4
5
6
7
import re 
regex = '[a-zA-z0-9]$'
def check_alphanumeric(string): 
	if(re.search(regex, string)): 
		return ("Accept") 
	else: 
		return ("Discard")