I am extracting text using Get Text activity and storing it in a variable “Account_Number”. The extracted value is in the format: “Account Number is AC2025-7537366”. I need to extract only the numeric values that come after the prefix “AC” and including “AC” Can you please suggest the best way to achieve this in UiPath?
Use an Assign activity: strValue = System.Text.RegularExpressions.Regex.Match(Account_Number,"AC\d+").Value
This will extract AC along with the numeric part.