How to find result out of a string

@Ranjit_Nayak1

It would be better to use Else if rather than switch…As there are extra text values as well.It looks like this

And also for extracting number you can either use split or if the separators are changing then use regex \d+ which would also work as stated by @Balaji_Murugan

cheers