> If each form element is not on it's own line, however, this script will break.
How would you do this without regard to line breaks? For example, is it possible to first strip all the cr/lf codes from a text file and then follow that with the appropriate regx to xtract the needed sections?