I have a long file
Jet pack(human, metal)
thin wire, sheet; fat tube,rod
thin girl;
fat boy;
We like to read
They like to write
End
I would like to extract all the words after "thin" and "fat" which are comma separated. These words can also be alone. In any case, even if both thin and thick are present on a single line, they will be separated by a semicolon. My array will contain:
wire, sheet, tube,rod,girl,boy
I need an array of these words which I will then use in extend the arguments of the function. Since it is a mixture, how can we use strip for ; and then again use strip for ,?
Cheers