I have a string fullstr = "my|name|is|will" , and i would like to extract the substring "name".
I used string.find to find the first position of '|' like this:
pos = fullstr.find('|')
and it return 2 as the first position of '|' . I want to print substring from pos position until next '|'. There's rsplit feature, but it return the very first char from right of string, since there're many '|' in my string. How to print the substring?