Split String Using Identifier In Python