I want to extract a piece of information from a string. I know that the bit I am interested in is always preceded by a certain sequence of characters. However, the position of the characters changes.
Substr asks for a precise position, which I do not have as it is changing for each string. Using $` to read out the remaining string following the given sequence (as part of an if-clause) is not working either. This seems to pick up a part of my count variable instead of the substring I am interested in.
What wisdom can you offer your humble novice, honoured monks?
In reply to Alternative to Substr? by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |