[Cialug] multiline regular expression
Dave Weis
djweis at internetsolver.com
Thu Jun 28 09:49:36 CDT 2007
On Thu, 28 Jun 2007, Matthew Nuzum wrote:
>> It would seem to me though that the fields are of fixed size. If so,
>> it'd probably be faster to code something up that pulls out the data
>> based upon that rather than relying on a regular expression.
> I agree. I'd read line by line, validating each and then splitting on
> boundaries (either white space or fixed field size). Any row that
> didn't work out could be logged and handled manually.
It is fixed with but this is actually from a report that has headers and
other fluff around it. I was hoping to use the regex to avoid writing more
of the removal logic myself.
> Especially since any missing line would be lost revenue. (Murphy's law
> says that the 18 hour call to Kashmir would be the line that gets
> dropped)
Very true
dave
--
Dave Weis
djweis at internetsolver.com
http://www.internetsolver.com/
More information about the Cialug
mailing list