lua - Non-greedy matching for email headers -
given email header input this
cc: "'johnny sudson'" <johnny@quvx.com>, <martin@quvx.com>, <joe@quvx.com> how lua match email address? intuition of being <(.*)> or similar matches in greedy fashion, need entry individually....
my use case this.
for emails in string.gmatch(all_cc,"<(.*)>" ) so can work each email address individually
non-greedy matching in lua represented in case <.->.
Comments
Post a Comment