Originally posted by Thomas Fortino
Hello All,
I wrote a brief XLTP tclproc a few months ago to send an email address if there was anything before and after the @. I have to update the tcproc to look for the TLD (Top Level Domain), and send email address if there is something after the (.) period but I can't get the syntax correct.
Example -
SEND -
xxxxx@aol.com Send nothing - xxxxx@aol
Below is a portion of the XLTP proc currently in use.
set email {}
set email2 {}
if [regexp -- {.+@.+} [lindex $xlateInVals 0]] {
set email [lindex $xlateInVals 0]
} else {
set email $email2
}
set xlateOutVals