Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    5

    Lightbulb Unanswered: Anyone know about Parsing an email?

    Hello everyone

    Heres what it looks like:

    I have a large file of over 40k email records. The emails are all mixed up and come in various formats but i noticed that most of them are in this format:

    firstname.lastname@email.com
    firstname.middlename.lastname@email.com

    For all those emails with the period (.) in between, the (.) actually separates an individuals first and last name.

    My task is this, to separate all the emails that are in this format into first and last name fields. I'm stimped folks and I'll really appreciate any pointers or ideas on how to go about solving this task.

    Thanks

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    use substring and charindex
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •