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"
((?:^.*\d.*\n){0,2})VAT((?:\n.*\d.*){0,2})
"
gm
Input 1
New
Subtotal AED1,232.20 AED61.61 VAT 5 % Tax: RECEIPT TOTAL: AED1.293.81 fo bar Subtotal AED1,232.20 AED61.61 VAT 5 % Tax: RECEIPT TOTAL: AED1.293.81
Extraction
Subtotal AED1,232.20 AED61.61 VAT 5 % Tax: RECEIPT TOTAL: AED1.293.81 fo bar Subtotal AED1,232.20 AED61.61 VAT 5 % Tax: RECEIPT TOTAL: AED1.293.81