Please find the below sample possible strings
Orange+bhabha<<0Mango>foo>>10Apple Https://test.com<<5>>2Grape==50kiwi>>20<<5
How do we extract text only from the above string list (e.g., Orange+bhabha,Mango>foo,Apple Https://test.com,Grape etc..)?
Please find the below sample my tried Codesnip:
eg:var str="Orange<<0";
str.Split("<<")[0].Split("==")[0].Split(">>")[0];
// Output : Orange
It is working fine. Is there an optimal solution to solve this issue?
Input -> Desired output "Orange+bhabha<<0" -> "Orange+bhabha" "Mango>foo>>10" -> "Mango>foo" "Apple Https://test.com<<5>>2" -> "Apple Https://test.com" "Grape==50" -> "Grape" "kiwi>>20<<5" -> "Kiwi"