I struggel since hour with a Problem, which is may for an Expert easy to solve.
I’ve an Activitie that scrapes a String from a System and I want to extract the Name out of the string.
The string has two diffrent syntaxes and I don’t find out how to solve it with one RegEx
(Name of Company [Name of Agent])
I use this RegEx (?s)(?i)(?<=])(.*?)(?=]) to parse
(Name of Company [Prefix] [Name of Agent])
I use this RegEx (?s)(?i)(?<=] [)(.*?)(?=]) to parse
In both Options I only want to have the name of the Agent. How could I merge both RegEx into One.
Thx for your support.