1 Reply Latest reply on Sep 5, 2008 10:37 AM by VarioPegged

    Email Regular Expression with a String.Match()

    uadrive
      I'm currently using a RichTextEditor for a user to build HTML for a site. However, I want the application to scan for emails and encode them so they are protected from spam bots when they go to the live site. I've written a regular expression to find an email and it seems to work, but it only returns one email at a time from the string. I have had to revert to a while loop to traverse the string until I'm satisfied. I don't particularly like that method and would like to just do one String.match() query to retrieve all of the emails. Can anyone see something here that I'm missing?