Need Help !!!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sasha18
    Confirmed User
    • Dec 2002
    • 582

    #1

    Need Help !!!!!

    i have an email list which emails are located in this way

    [email protected] sass@@hotmail.com [email protected]

    what program do i use to make emails located in the right way ?

    like
    [email protected]
    sass@@hotmail.com
    [email protected]


  • NetRodent
    Confirmed User
    • Jan 2002
    • 3985

    #2
    [enter]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [enter]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [enter]

    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [enter]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [space]
    [enter]
    "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
    --H.L. Mencken

    Comment

    • Sasha18
      Confirmed User
      • Dec 2002
      • 582

      #3
      its gonna take me whole day to do that

      Comment

      • NetRodent
        Confirmed User
        • Jan 2002
        • 3985

        #4
        Better get started then...

        Here's short perl script that might do the job assuming the file isn't huge.

        #!/usr/bin/perl

        $/ = undef;
        open(IN, "<./input.txt");
        $data = &lt;IN&gt;;
        close IN;

        $data =~ s/\s+/\n/g;

        open(OUT, ">./output.txt");
        print OUT $data;
        close OUT;
        Last edited by NetRodent; 02-22-2003, 07:09 PM.
        "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
        --H.L. Mencken

        Comment

        • Sasha18
          Confirmed User
          • Dec 2002
          • 582

          #5
          what do i do with this perl script ?

          Comment

          • waste
            Confirmed User
            • Nov 2001
            • 770

            #6
            why not just open it in dreamweaver and do a find and replace

            i.e. find all ".com s" replace with ".com (press return)s"

            but it's just an idea

            Comment

            • gothweb
              Confirmed User
              • Jun 2002
              • 8849

              #7
              Yeah, use find and replace in word. A hint "^p" is a line break.

              Photos by Ian X.: Distinctive photos of goth babes.
              Blood Money:Your traffic, my sites, our money.
              MojoHost: Still the best.

              Comment

              • waste
                Confirmed User
                • Nov 2001
                • 770

                #8
                Originally posted by gothweb
                Yeah, use find and replace in word. A hint "^p" is a line break.
                guess it was a good idea after all

                Comment

                • lEricPl
                  Confirmed User
                  • Dec 2002
                  • 1062

                  #9
                  Using Dreamweaver would be your best bet.

                  Very easy to do.

                  Also, look at the help docs in the Dreamweaver Manual...OK reference on RegEx.

                  After reading your problem I thought this would be a good example of basic IO options and RegEx use in .NET.

                  So, I wrote a small app.




                  Here is the compiled .exe
                  http://www.vbasic.net/Studio/Desktop...andReplace.zip

                  Here is the Source code with Visual Studio.NET Solution files if anyone is interested.
                  http://www.vbasic.net/Studio/Desktop...andReplace.rar

                  Anyway, you can use it if you wish.

                  You Must have the .NET Framework Installed to use this.

                  The program will allow you to open a document or paste the text right in.

                  It will also give you the option to save the file after the replace. (Access the Save option from the File Menu)

                  If you just want to replace Spaces with New Lines....just check the 2 checkboxes.

                  Use it if ya need.
                  Last edited by lEricPl; 02-22-2003, 11:10 PM.

                  Comment

                  Working...