For example, consider ID = 3 and beta = "eight,nine,ten,eleven,twelve". How could I extract the substring between the 3rd and 4th commas? (Answer: "eleven")
Code:
clear input ID strL beta 1 "one,two,three,four" 2 "five,six,seven" 3 "eight,nine,ten,eleven,twelve" end
Many thanks!
0 Response to Extract substring between nth and (n+1)th commas in a variable
Post a Comment