OK, probably the easiest thing to do would be to add some kind of state
functionality to the loop and use different logic/regex stuff based on
where in the process you are ... first test each line for '/^SHIP TO/',
'/^BILL TO/' or /^ORDER NO./ ... that could set your 'state' for the
script, then y
Hank Marquardt wrote:
> Actually you're OK here (I think ...) if a few of them end up blank,
> that's OK, just ignore them, you'll know the ones you want based on the
> real email you receive ... as for the folks putting To: someone, From:
> someone ... I wrote the regex to accomodate that ... it
> Actually, some of those will end up being "blank", for example the 'BILL TO:'
>line is always blank, I may not have all 3 lines of 'Address:' filled, etc., etc.
>And there may be more lines that might end up blank when someone places an order.
>And as you pointed out, some lines might h
Hank Marquardt wrote:
> if you do have extraneous ':'s
> elsewhere in the message then you'll need to be a little more picky with
> your regex stuff to only pick out what you want -- for example, your
> post has a couple of sentences that end with ':' before an example ...
> the script as written
OK, I took a stab at this using your post for input and it should be a
good enough starting point for you ... if you do have extraneous ':'s
elsewhere in the message then you'll need to be a little more picky with
your regex stuff to only pick out what you want -- for example, your
post has a coup
I need to "convert" the following:
---
Todays Date: 20-Nov-2001 10:58:24AM
Order ID: W25
Customer Email: [EMAIL PROTECTED]
Email Promotions: Ok
BILL TO:
Business Name:
Contact Name: Ashley M. Kirchner
Day Num
6 matches
Mail list logo