Contains Function
I am trying to do a basic e-mail address validation. I've done:
<xsl:if test="contains(mailaddress, '@') and contains(mailaddress, '.')">
which has cut out some of the rubbish.
firstly can the . and @ be contained in a single "contain"
secondly does anyone have anything else for e-mail checking (I am using version 1) - maybe checking that there must be a dot after the @ sign???? I assume doing something with substring-after(mailaddress, '@') might help, but I've not tried it yet.
thanks in advance
|