I have a .csv file that I need to add regex matches in each line as new columns after the original columns, here is a part of the .csv file:
"Event";"User";"Description"
"stock_change";"[email protected]";"Change Product Teddy-Bear (Shop ID: AR832H0823)"
"stock_update";"[email protected]";"Update Product 30142_Pen (Shop ID: GI8759)"
Here is the two Regex Patterns I want to add their extracted results from each row as new columns (one column for each)
(?<=Product\s)\w.*?(?=\s*\(Shop)
(?<=Shop ID:\s)\w.*?(?=\))
The Result on the data should be Like this (Header Row is not important):
"stock_change";"[email protected]";"Change Product Teddy-Bear (Shop ID: AR832H0823)";"Teddy-Bear";"AR832H0823"
"stock_update";"[email protected]";"Update Product 30142_Pen (Shop ID: GI8759)";"30142_Pen";"GI8759"
Sorry I'm very basic in Batch Scripting, thanks in advance