Quantcast
Channel: Non-greedy matching for email headers - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Non-greedy matching for email headers

$
0
0

Given an email header input like this

Cc: "'Johnny sudson'"<johnny@quvx.com>, <martin@quvx.com>,<Joe@quvx.com>

how do I get lua to match only the email address? my intuition of it being <(.*)> or something similar only matches in a greedy fashion, where as I need entry individually....

my use case is something like this.

for emails in  string.gmatch(all_cc,"<(.*)>" )    do

so I can then work with each email address individually


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images