Well that's a problem then.
If there is no consistent pattern, I don't see how anyone can write a formula or programme to do this job.
You could perhaps store all your target values in a range somewhere, and then test whether each input contains ANY of the target values, but that's a bit complicated.
And maybe more so, given that some of your outputs don't seem to even be in the input values.
For example, in entry 1, is the solution supposed to recognise that "Windows NT 10.0" is the same as "Windows 10" ?
For example, in entry 1, is the solution supposed to recognise that "Chrome/60" is the same as "Chrome 60", or maybe any instance of "Chrome" should be identified as "Chrome 60" ?
For example, in entry 2, how do we identify Internet Explorer 11 ?
For example, in entry 3, how do we identify Safari 9 ?
The answers to the above may be obvious to you, but we need to devise a systematic way of working out the answers, and you need to help us on how to do that exactly.