![]() |
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 |
[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] |
its gonna take me whole day to do that
|
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 = <IN>; close IN; $data =~ s/\s+/\n/g; open(OUT, ">./output.txt"); print OUT $data; close OUT; |
what do i do with this perl script ?
|
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 |
Yeah, use find and replace in word. A hint "^p" is a line break.
|
Quote:
|
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