Hi Monks!
I am working on parsing text and making required substitutions inside it. For example, I have a template text and I am using curly braces inside it in places where text may vary depending on input data:
text text {scope 4 text {scope 2 text {scope 1 text} scope 2 text} scope 4 text {scope 3 text} scope 4 text } text textThe question is how to process the scopes, subscopes in the order I stated in the example sentence? 1-2-3-4? I mean accessing the most inner one and then moving to the top (most outer) scope.
What is the best way to do that?
Thanks! Lana :)
In reply to Text parsing. Processing scopes and subscopes. by Lana
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |