> Some of these DPFs occur because a record gets truncated, or goes beyond its length.
So, basically the length field is worthless, but always there? Why not something like this then:
$TLI = "MEH|MED|MMD|MMS|CR1|FR1"; while(m/($TLI)(....)([^$TLI]+)/g) { $error=$1; $length=$2; $text=$3; ## Do what you need with them here. +.. }
In reply to Re: Parsing and \G and /g and Stupid User Tricks
by turnstep
in thread Parsing and \G and /g and Stupid User Tricks
by THuG
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |