Use the Assign activity to manipulate the string and store the desired output in a new string variable, let’s call it outputString. Here’s an example of the assignment:
In this example, the regular expression pattern (\d{2}-\d{5})_.*?_([A-Z]{3}&[A-Z]{7}) is used to match and capture the desired parts of the input string. The first captured group (Groups(1)) represents the “10-77349” part, and the second captured group (Groups(2)) represents the “APR&RETAILS” part. The + operator is used to concatenate the captured groups with the “_” separator.
After executing this Assign activity, the outputString variable will contain the desired formatted output: “10-77349_APR&RETAILS”.