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
~
(?(DEFINE) (?<amount>\d[\d.,]+) # amount, starting with a digit (?<currency1>Rs\.?\ ?) # Rs, Rs. or Rs with space (?<currency2>INR) # just INR ) (?: (?¤cy1) (?P<money1>(?&amount)) | (?P<money2>(?&amount)) (?=\ (?¤cy2)) )
~
gx
Input 1
New
Rs. 2000 , Rs.2000 , Rs 20,000.00 ,20,000 INR 200.25 INR.
Extraction
Rs. 2000 , Rs.2000 , Rs 20,000.00 ,20,000 INR 200.25 INR.