Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Regex required

Regex required

Scheduled Pinned Locked Moved Visual Basic
helpcsharphtmlasp-netdatabase
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d_smit
    wrote on last edited by
    #1

    Hello, I got stuck to one problem and need your help. In my asp.net application i am using RegEx (regular expresiion) to get all the emailids enclosed in a particular html tag. For ex : see the code below line1 <to> test@test.com, user1@user.com </to> -----line1 This statement could repeat in my textbox multiple times with same or different mailids enclosed. So finally regex should return two emailids w.r.t. to above example line1. now line1 generates different html with different mail providers like yahoo, rediffmail gmail. for ex for outlook generated html, i have written Dim S As New Regex("<to>(.*)</to>", RegexOptions.Multiline Or RegexOptions.IgnoreCase Or RegexOptions.Compiled) this returns the expected result but if i press enter before closing to tag then ids get converted to hyperlink and href get inserted into html code. then i pass this statement to regex i dont get expected result. Let me tell you that i pass html code generated as a string to regex and expecting that it should return all emailids enclosed in the code removing duplications and irrespective of other symbols or tags. so my query is how i could retrieve the emailid s from any generated htmls. Please anyone who knows provide me the code. thanks in advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups