S
steve
here's the deal...cvs, tick encapsulted data. trying to use regex's to
validate records. here's an example row:
'AD,'BF','132465','06/09/2004','','BNSF','A','TYPE','1278','','BR','2999',''
,'LX','','01','09','1','','','','','','','','','CUSTOM JOB CODE TEST'
record type is in the 8th column ('1278'). using regex b/c there are a
miriad of types that cause other data w/n the record (or related records) to
be in/valid. i'm having problems getting a match on the generalization of
the first 7 columns:
something like this:
(?=(?
?<!',').*(?!=',')',')){7}(?:'1278(?=','))
(?=(?
?<!',').*(?!=',')',')){7} represents the first 7 colums.
if someone can help me generalize that patter, i'd appreciate it very much.
tia,
steve
validate records. here's an example row:
'AD,'BF','132465','06/09/2004','','BNSF','A','TYPE','1278','','BR','2999',''
,'LX','','01','09','1','','','','','','','','','CUSTOM JOB CODE TEST'
record type is in the 8th column ('1278'). using regex b/c there are a
miriad of types that cause other data w/n the record (or related records) to
be in/valid. i'm having problems getting a match on the generalization of
the first 7 columns:
something like this:
(?=(?

(?=(?

if someone can help me generalize that patter, i'd appreciate it very much.
tia,
steve