Hi i have a dataset of strings, and some strings have mixed words such as below:
سلام12World
دوربینdigital
سال2012good
... and my desired output is :
12 سلام world
دوربین digital
2012 سال good
here is my code :
def spliteKeyWord(str):
regex = r"[\u200b-\u200c]|[0-9]+|[a-zA-Z]+\'*[a-z]*"
matches = re.findall(regex, str, re.UNICODE)
return matches
but this code doesnt show my desired output. Is it possible to get something like that output?