I'm trying to split a sequence of non-regular strings that I read in a python program from excel files. I am using Regex101.com for testing and I partially have succeeded in doing it:
My sample:
Barber #1-1 Daily Prod. - Pumping unit
Barbee #1-3 Daily Prod. - Plunger Lift
Barbee #1-5 Daily Prod. = Coil Tubing
Barbee #1-3 Daily Prod. - Plunger
Barbee #1-5 Daily Prod.w/ coil tubing
Porter GU #1 Well #2 Daily Prod.
Barber GU #1 Well #1 Daily Prod.
Bogel #1-2 Daily Prod. w/ plunger
My regex:
(.*)\sDaily Prod\.(.*$)
I am getting this answer select group1 and group2:
Barber #1-1 - Pumping unit
Barbee #1-3 - Plunger Lift
Barbee #1-5 = Coil Tubing
Barbee #1-3 - Plunger
Barbee #1-5w/ coil tubing
Porter GU #1 Well #2
Barber GU #1 Well #1
Bogel #1-2 w/ plunger
and I would like to have:
Barber #1-1 Pumping unit
Barbee #1-3 Plunger Lift
Barbee #1-5 Coil Tubing
Barbee #1-3 Plunger
Barbee #1-5 coil tubing
Porter GU #1 Well #2
Barber GU #1 Well #1
Bogel #1-2 plunger
Thanks.
