creating an function to get emails from an file like regex
Posted on 2011-10-10
hi i have an textbox where the user can type the emails there, but sometimes you know how users are, they don't follow the rules of programming. so they can put like
email@example.com email2.hotmail.com firstname.lastname@example.org or
email@example.com;email2.hotmail.com;firstname.lastname@example.org or etc.
so i want an function that reads the textbox and returns an list of the emails like this
Function reademails(byval vtext as string) as datatable
find all emails inside and return the emails inside the datatable?