My problem is, that I want give strings a number. This works well. The problem with that is, that I'm not able to read back the given numbers for each string. I can only read back the number of the first entry, not the last both even. The Problem seems to be the read out, because the full assignment is right.
What I want is the output:
A) 1
B) 2
C) 3
Here is a minimal example:
\documentclass{article}
\usepackage{xstring}
\newcommand{\stringToNumberTable}{One:1;Two:2;Three:3;}
\begin{document}
A) \StrBetween{\stringToNumberTable}{One:}{;}\\
B) \StrBetween{\stringToNumberTable}{Two:}{;}\\
C) \StrBetween{\stringToNumberTable}{Three:}{;}\\
\stringToNumberTabTable
\end{document}