I'm trying to get a report i run from our system into a tab delimited format. I've pretty much got the pattern down save one part. The system puts tabs between fields that aren't too long, but the ones that are it puts spaces.
MIDWEST BENEFIT PHARMACY\t\t\t\t then spaces
CORNERSTONE PHARMACY SERVICES LLC-INDIANAPOLIS ***CORP.*** no \t just spaces
At the end of both of those lines there's another field with any of three numbers. Since not all of the fields end in tab, and spaces are in the names that i want to capture in one field, i figured i could stop the field based on those three numbers in the next field. This is where i'm stuck, i can't figure out how
So basicallly m%(.* ending with) 58914, 0088, or 0066%
Just not sure how to write that last part.
Also those numbers won't appear anywhere else on the line.
I know i could use $, but i'm not sure how to group those numbers together so it wouldn't just stop on the first single number it matched.
Thank you for any help you may be able to offer,
Chris
MIDWEST BENEFIT PHARMACY\t\t\t\t then spaces
CORNERSTONE PHARMACY SERVICES LLC-INDIANAPOLIS ***CORP.*** no \t just spaces
At the end of both of those lines there's another field with any of three numbers. Since not all of the fields end in tab, and spaces are in the names that i want to capture in one field, i figured i could stop the field based on those three numbers in the next field. This is where i'm stuck, i can't figure out how

So basicallly m%(.* ending with) 58914, 0088, or 0066%
Just not sure how to write that last part.
Also those numbers won't appear anywhere else on the line.
I know i could use $, but i'm not sure how to group those numbers together so it wouldn't just stop on the first single number it matched.
Thank you for any help you may be able to offer,
Chris