saya memiliki sebuah fungsi validasi email yang tidak memanfaatkan Regular Expression, tapi memanfaatkan System.Net.Mail , sebuah cara yang “tidak biasa”:
Function Detect_MailAddress_Errors(ByVal sMailAdd As String) As Boolean
Try
Dim oMailMsg As New MailMessage
oMailMsg.To.Add(sMailAdd)
Return True
‘Format Exceptions
Catch exFormat As FormatException
‘MsgBox(“Format Error”)
Return False
‘ General Exceptions
Catch ex As Exception
End Try
End Function












Wah gak bisa pake soal ini lagi dech, lha udah dikasih bocoran hehehehe
Oleh: Willy Sudiarto Raharjo on Mei 24, 2008
at 5:41 pm
@willy: waa, sori2 wil, aku ga tau… tapi kan kalo pake regex bisa lebih susah lagi…
Oleh: antonie on Mei 24, 2008
at 9:35 pm