Hi
could someone give me an example of how i could check is the format of an email address entered is correct. Ive been looking at the regexp page but i cant seem to figure it out.
thanks
Simon
Code: Select all
if {[regexp {.+@.+\..+} <text>]} { valid }
If you want to go beyond a one line regexp, you may end up writing an interesting tcl which does:simonbell wrote:Hi
could someone give me an example of how i could check is the format of an email address entered is correct. Ive been looking at the regexp page but i cant seem to figure it out.
thanks
Simon