jweinst1
1/8/2016 - 2:34 AM

matching.py

matching.py

#matches periods, regex engibe


def matchany(string):
	return string.__class__ is str

def matchperiods(string):
	for i in range(len(string)):
		if string[i] == '.':
			continue
		else:
			return False
	return True