GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need Help !!!!! (https://gfy.com/showthread.php?t=110488)

Sasha18 02-22-2003 08:52 PM

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]


:helpme

NetRodent 02-22-2003 08:59 PM

[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]

Sasha18 02-22-2003 09:01 PM

its gonna take me whole day to do that

NetRodent 02-22-2003 09:04 PM

Better get started then... :Graucho

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;

Sasha18 02-22-2003 10:17 PM

what do i do with this perl script ?

waste 02-22-2003 10:22 PM

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

gothweb 02-22-2003 10:28 PM

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

waste 02-22-2003 10:52 PM

Quote:

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

lEricPl 02-23-2003 01:01 AM

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.

http://www.vbasic.net/Studio/Desktop...andreplace.gif


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.


All times are GMT -7. The time now is 11:13 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123