I have the following examples strings:
(1-0) PK-35 - Women
(2-2) PK-35 Women
(1-0) Real Betis - Women
(2-2) Real Betis Women
There are ladies football teams and i want capture the name without the genres. Name and genre can be separate or no by a "-".
The capture solution i want are in strong. The problem is with PK-35 because of it have a "-" in the name. My expression is
([\w+\s-]*) ( - )?Women
but in the first expression is matching PK-35 -, because "-" is allow in the first group. How can do it to capture the name without the "-" separation if exist?