Tommy Hilfiger Men Teal Blue Analogue Watch TH1791293_BBD
I need to split this and keep the last part i.e
TH1791293_BBD
The issue is that the part before the target string i.e
Tommy Hilfiger Men Teal Blue Analogue Watch
Can be of varying length.
Summary: I need to split the text using spaces and keep the last part of the array. Additional constraint: I need to do it in a single line without being able to save the object in a variable(something like this):
a= $e.split(" "); output= a[a.length()-1]
Any solution to this problem is welcome. I've just started using Parsehub for data parsing.