Looks like a job of regexen. What have you tried? Also, I'm not 100% sure I understand what your input really looks like. Your $templateformat and $inputexample sniglets don't much to clarify things. Are you apt to see NM, CH, SW tokens in one line of input and numerics in another?
If you'd provide a larger sample set (not much larger) of the input you're trying to parse, it would be easier to help you...
In reply to Re: text extraction question
by blue_cowdawg
in thread text extraction question
by echoangel911
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |