How to cut part from this string…
"abb.c.d+de.ee+f.xxx+qaa.+.,,s,"
… where i know position by this:
Result is always between “.” (left side of result) and “+” (right side).
I know number of “.” from left side and number of “+” from right side, to delimit resulting string.
Problem is right side, cause i need to count “+” from end.
Say…
from left side: begining is at 4th “.”
( this is easy ), result is =
"xxx+qaa.+.,,s,"
from right side: end is at second “+” from end!
"xxx[here]+qaa.+.,,s,"
result is =
"xxx"
I try to do this myself with .substring and .indexOf, but with no success…
Any ideas? thanks
You could use the
StrReversefunction to reverse the character sequence and then count+from the left (using the same method as counting the.).