Regex to match a name starting with a specific set of strings

84 Views Asked by At

Is it possible to match only the first string that occurs when specifying a specific subset of strings? I.e: SRL

SC FAN COURIER EXPRESS SRL                DISTRIBUTION SERVICES
J40/4014/2001 - RO13838336                MANAGEMENT SRL
                                          SC FAN COURIER EXPRESS SRL
                                          Operator FAN

What I want DISTRIBUTION SERVICES MANAGEMENT SRL

What I get ['', 'DISTRIBUTION SERVICES']

What I'm trying SRL(.*)\n

Demo

0

There are 0 best solutions below