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
r"
Pet Owner : (\w+)(?:(?!Pet Owner :).)*Pet Type : (\w+)
"
gs
Input 1
New
Pet Owner : Sophia Colour : Blue Pet Type : Cat From : India Price : High Pet Owner : Bruce Not own pet Pet Owner : Sean Not own pet Pet Owner : Julia Colour : Yellow Pet Type : Bird From : Israel Price : Low Pet Owner : Bean Not own pet Pet Owner : Max Colour : Green Pet Type : Dog From : Italy Price : Normal Pet Owner : Clarie Not own pet
Substitution
Pet Owner : Sophia Colour : Blue Pet Type : Cat From : India Price : High Pet Owner : Bruce Not own pet Pet Owner : Sean Not own pet Pet Owner : Julia Colour : Yellow Pet Type : Bird From : Israel Price : Low Pet Owner : Bean Not own pet Pet Owner : Max Colour : Green Pet Type : Dog From : Italy Price : Normal Pet Owner : Clarie Not own pet