- This topic has 3 replies, 3 voices, and was last updated 14 years, 11 months ago by .
-
Topic
-
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
}
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘Tcl Library’ is closed to new topics and replies.