Hello everyone. I do not know how to express this problem but I will show you what is happening for you to understand.
I am working with a string list in which each line contains information like this:
Always 2 numbers after a name, separated by “_”, then 3 numbers, then 13 numbers.
But after that it can have 0, 1 or 2 numbers before a date and finally a value and that gets in the way
I need these 2 numbers between the 13 digits and the date.
So, first I need to know if there are 0, 1 or 2 numbers in that position.
If you have 1 just take that information and assign it to a variable - call: var02
Now if it has 2 numbers, it must assign the first number to the variable
And then he assigns the second number to the variable
However, if he has neither, he must simply skip this step.
how can I do this without knowing the position in the string or even wondering if the value exists or not?