in reply to Re^2: Alternative to Substr?
in thread Alternative to Substr?

Both very good points. But like I said, I had to make some assumptions, not knowing what his data looks like or what he wants to extract from it.

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