import re


def splitByCamelCase(word):
	"""Splits the input word by camel case

	'fooBar' --> ['foo', 'Bar']
	'FOOBar' --> ['FOO', 'Bar']

	Args:
		word (str): Input word to split

	Returns:
		list: The split word
	"""
	matches = re.finditer('.+?(?:(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])|$)', word)

	return [m.group(0) for m in matches]