You're processing the data line by line, so the regex will never see enough of the text to match.
It would help a lot if you could show 2 or 3 input records at least, so we can see how they're delimited.
In reply to Re: Extracting multiple rows in a text file with a regex.
by Loops
in thread Extracting multiple rows in a text file with a regex.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |