Capture pattern in python
I would like to capture the following pattern using python
anyprefix-emp-employee id_id-designation id_sc-scale id
Example data
strings = ["humanresourc-emp-001_id-01_sc-01","itoperation-emp-002_id-02_sc-12","Generalsection-emp-003_id-03_sc-10"]
Expected Output:
[('emp-001', 'id-01', 'sc-01'), ('emp-002', 'id-02', 'sc-12'), ('emp-003', 'id-03', 'sc-10')]
How can i do it using python.
Category Data Science