import rek = "X"print( re.split(fr"(?a)\b{k}\b", "X测试一Q测试二XQ测试三") )
Standard input is empty
['', '测试一Q测试二XQ测试三']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!