I'm trying to find a good method to parse data out of a long string - I usually use index and substr, but I think that PARSE would be a better alternative. Problem is, I don't know how to use parse properly for something like this.
examples of string that I want to analyze:
I want to extract the numbers from the above strings. They will be used as subscripts for a stem variable at a later point.
To continue the example, the desired output would be
... and so on...
I'm gonna go ahead and try use index,substr, and delstr but from what I've heard/read PARSE is a much better way to do this. Anybody feel like pointing me in the right direction?
PS: yeah, I know converting the string "10-23" into a 14 element stem has to be done with programming logic and can't be done thru PARSE.