Hi Januk, Thank you so much for your time. Everything works like a
charm except I have one question: what took you so long? ;-)
Seriously, everything works like a charm except that the %To regexp is
adding itself to the replyto "webmaster" address (which is really me)
& I'd like to *replace* the webmaster reply address with the output of
the %TO regexp you've written. I tried %TOADDR but that didn't seem to
have much effect.
-----|| original message ||-----
On Thursday, March 22, 2001 08:28:33 [ -0800 GMT], you wrote the
following in regards to 'TB! v1.51 - need a regexp':
Januk> Hi Jan,
Januk> Historians believe that Thu, 22 Mar 2001 at 10:49 GMT -0500 was when,
Januk> Jan Rifkinson [JR] typed the following:
Januk> <snip>
JR>> I'd like to be able to pluck out the "username:" (if there is one)
JR>> or pluck out "userEmail" as an alternative to use as a greeting,
JR>> i.e. Dear username or userEmail.
Januk> Try this:
Januk>
%SETPATTREGEXP="(?is)^(?(?=Username:\s*\S*)Username:\s*(\S*)|.*UserEmail:\s*(\S*))"%REGEXPBLINDMATCH="%TEXT"%SUBPATT="1"%SUBPATT="2"
JR>> Also would like to use the userEmail as a reply to address.
Januk> %TO='%SETPATTREGEXP="(?is)^UserEmail:\s*(\S*)\s*$"%REGEXPMATCH="%TEXT"'
JR>> Any help would surely be appreciated.
JR>> TIA
Januk> You're welcome.
--
Jan Rifkinson
Ridgefield, CT USA
Using TB! v1.51
ICQ 41116329
--
______________________________________________________
Archives : <http://tbtech.thebat.dutaint.com>
Moderators : <mailto:[EMAIL PROTECTED]>
Unsubscribe: <mailto:[EMAIL PROTECTED]>
You are subscribed as : [email protected]