I'm looking to build a regular expression to replace Rs./Re./rs/Rs with Rupee symbol from text like Rs.1,499 I tried following, but it replaces the amount after Rs. as well.
treated_value2 = treated_value1.replace(/(rs\.?\s?)\d+/gi,"₹");
I'm looking to build a regular expression to replace Rs./Re./rs/Rs with Rupee symbol from text like Rs.1,499 I tried following, but it replaces the amount after Rs. as well.
treated_value2 = treated_value1.replace(/(rs\.?\s?)\d+/gi,"₹");