I would like to extract two groups which are TestName and Model. In the second row, the TestName is connected to Model cannot be extracted as two different groups.
Link for regex:
Is it always MY followed by digits?
(?P<TestName>(?<=!\s)[^\s]+)\s?(?P<Model>MY\d+)
Is it always MY followed by digits?
(?P<TestName>(?<=!\s)[^\s]+)\s?(?P<Model>MY\d+)
Yes