Extract the first word in a string before -

extract the first word in a string before -
Data :
USA - Company Test -144.64
Hello World - Test - 6553

output :
USA
Hello World

say IP_var is your input,
split IP_var.split("-",c) and assign that to an array IP_var_array variable.
Output will IP_var_array(0)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.