Split string based on regex November 20, 2022 by Tarik I suggest l = re.compile("(?<!^)\s+(?=[A-Z])(?!.\s)").split(s) Check this demo.