Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a column (row1.Fruits_and_Veggies) which has values like
Tomatoes, Potatoes ---------------------need------------------Tomatoes
Onions, Cabbages ---------------------need------------------Onions
Oranges, Apples ---------------------need------------------Oranges
I need to replace the comma and the rest of the string subsequent to the comma with a "" (empty string). How can I accomplish this in tMap.
row1.Fruits_and_Veggies.replace().
row1.Fruits_and_Veggies.replaceAll(",.*$", "")
row1.Fruits_and_Veggies.replaceAll(",.*$", "")