welcome to the forums. unfortunately this is not how it works. we are glad to help, but you need to put effort and show us your code. we are not going to write it for you.
all that said you don't need regex for this. simple split at spaces will do. post your code in python tags, full traceback in erro r tags if you get any exceptions.
all that said you don't need regex for this. simple split at spaces will do. post your code in python tags, full traceback in erro r tags if you get any exceptions.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs