Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
(.*)\sDaily Prod\.(\s*[-=w\/]+\s*)?(.*)
/
gm
Input 1
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
Extraction
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