If $match did occur more than once, I don't know which one he wants to use; maybe he wants to use all of them. That would require a change to my code. So I assumed the simplest scenario. Same with your second point, I was assuming simple lines of text with a newline only at the end.
TheEnigma
In reply to Re^3: Alternative to Substr?
by TheEnigma
in thread Alternative to Substr?
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |