I want to use regex to match the account number. Once account number is retrieved I have to check if all the retrieved account numbers are same. Can you please help me to get the proper approach/solution.
String: “(Main customer Acct. 8478378332)” [Need to extract only the account number]
The same kind of text may present multiple times in my paragraph with different account numbers. So I want to put a condition to check if all the matched account numbers are equal?
Please help.
Based on the Input format of the Text, we should able to use the Following Regex Pattern in Matches Activity :
(?<=Main customer Acct.\s*)\d*
Next, From the Matches Activity Output, we should be able to Determine if all the Account Number Extracted are the same.
Let’s consider resultMatches variable is the Output of the Matches
Then in an If Activity we should be able to use the Below Expression :