How to use python regular expression to extract data from the below two string
TASK000123-Tomcat server hosted on tbu.test1 is down-P1 --In Progress
TASK000123-Tomcat server hosted on tbu.test1 is down-P1 --Completed
I need the following csv file from this:
Format: TaskID,Priority,Status
TASK000123,P1,In Progress
TASK000123,P2,Completed
How can I do this? Thanks for helping me out