Can anyone please help me on this Regex part…
How to check using Regex whether dollar amount listed after line that reads “2nd Loan Amount :”
Sometimes the dollar amount may not be available. In my workflow if it is available then it will proceed or if it is not available then it should log message as dollar amount not exits
[If Applicable] 2nd Loan Amount: 100,000.00
How about the following expression?
System.Text.RegularExpressions.Regex.IsMatch(yourString,"(?<=2nd Loan Amount:\s*)\d[.,\d]*")
Try below Regex pattern
(?<=2nd Loan Amount: )[0-9][0-9,\.]+
Refer below path
Another pattern look into this
System.Text.RegularExpressions.Regex.Match(inputString,"(?<=2nd Loan Amount: )[\d,\.]*").Tostring.Trim
Its work perfectly !!!.. Thank you so much
one more thing if dollar amount exits then how to replace
Glad to seem your problem has been solved.
Can anyone please help me…
I want to remove [If Applicable] and my Output should be
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.