I am trying to replace below strings using Regex:
1) interest payable pursuant to this Section 3(d)(ii) on an Installment Due Date will be $108,452.04.
2) "Fixed Interest Rate" means the annual interest rate of 4.36%.
Desired result: $108,452.04 #for 1st line
4.36% #for 2nd line
I am using the following methods for the respective lines:
if REGEX_Match([Field],".*fixed interest rate.*") then REGEX_Replace([Field],"(.*?)(\d+.*%)","$1.$2%")
if REGEX_Match([Field], ".*interest payable pursuant.*") then REGEX_Replace([Field], "(.*?)(\$\d+.*?)(,\d+.*)", "$1")
The result that I get using the above codes are the same previous lines, there is no change.
I don't know what I am doing wrong. Can anyone please correct my code?