Extract data from RegEx and output to csv file

strPattern is a String Variable. We assign on its value the Regex Pattern. Later we use this pattern via the variable within the Regex.Matches

For some trainings have a look here
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum

and do some prototypings within the debug panels e.g. immediate panel
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum