find and replace ??

Status
Not open for further replies.


What is this in? Word, html, txt, excel, csv etc etc...

Is the hard enter showing up as anything? <br><p> ?
 
just a .txt i can use any program that would do it right now it's just plan text i have done it in the past and forget how to now
 
It's been a few years, but I believe UltraEdit's find/replace function has this option (and a lot more, ex. tabs, newlines, delimiters, etc.)
 
PHP:
echo return_csv('my_text_file.txt') ;

function return_csv($textfile) {
 $text = file_get_contents($textfile) ;
 $text_array = explode('\n',$text) ;
 foreach ($text_array as $token) {
  $output = $output . $token. ',' ;
 }
 return $output ;
}
That's totally untested and I usually screw shit up when just typing stuff out so expect an error. That little function should definitely get you started in the right direction.
 
That thing looks sweet. Have you used it in a PHP environment?

It's a windows program but if you have a lot of data to parse out of thousands of text files or a database dump of some sort, it will do just about anything you program it to do. I ran 800,000 files through it over a few hours and it tore through them without choking out on me. It runs from the command line too so you can script just about anything through it.
 
Alias Find and Replace
(aliassoftware.com)

Great program. I used to use it when I was into autogen sites and had to make changes to thousands of pages.
 
Status
Not open for further replies.