Dear fellow Stata enthusiasts,
I'm looking for a solution to the following rather simple problem:
Saying I have a string
and I now want to retrieve the position of the word "World!" in the string foo. I want to get the position of the word which in this case would be 2, because "World!" is the second word inside the string.
(I know about the string functions (strpos(), etc.) but all of my solutions to this problem seem overcomplicated to me.)
Thank You for your help!
Max
I'm looking for a solution to the following rather simple problem:
Saying I have a string
Code:
local foo = "Hello World!"
(I know about the string functions (strpos(), etc.) but all of my solutions to this problem seem overcomplicated to me.)
Thank You for your help!
Max
Comment