Hello Community,
i have a problem with my regex expression. What i want is a Name within a String.
For Example, the following is the String:
25.03.2022 14:39:32, KK922GG - Bruce Willis (it is a normal name)
What i have marked in bold is the name i want to extract.
I am getting with this regex expression
KK922[a-zA-Z]+\s*-(\s([a-zA-Z]+\s)+)(it is a normal name)
a few results:
Match 1: KK922GG - Bruce Willis (it is a normal name)
Group 1: Bruce Willis
Group 2: Willis
Is there another solution (maybe easier) to get ONLY the Name Bruce Willis as (maybe) one Match?
Thank in advance for the help and answers
Best Regards