How To Quickly Remove Brackets From a Keyword List?

Status
Not open for further replies.

Edwin

New member
Mar 17, 2007
329
3
0
I've been using Notepad to remove brackets from a text document, but it's not as fast as i would like it to be.

Is there a tool of some sort i can paste in text and it will remove all the [ ] brackets it will find inside that text in an instant?

At least faster then Notepad that is?

Thanks in advance!
 


For find and replace, the quickest programs would be (in order of how quickly they'd do it, tested on a 7000 line file with all lines containing brackets):

Excel
Word
Wordpad
Notepad (dreadfully slow)
 
Yeah, Notepad is extremely slow.

Using OpenOffice it does speed things up, but you need to make two selections, one for the left bracket and then one for the right bracket.

I was thinking if there is something you could paste in your text or drop in your files it would remove those brackets in one go.

And if it has the ability to add a specific character of choice to the end or beginning of each line then i've got the perfect tool for what i need to do.

It will take away a few steps i need to make, for repetitive tasks it makes things a bit easier. :)

I've found this tool, but the site looks a bit shady to download and install something from it.
 
php code:

<?
$text = file_get_contents("my_text_file.txt");
$bad = array("[","]");
$replace = ""; // currently nothing (put whatever between quotes)
$text = str_replace($bad,$replace,$text);
$fh = fopen("my_new_text_file.txt","w");
fwrite($fh,$text);
?>

ultra fast
 
Thanks!

I couldn't get it to work though.
It would also require to name each file to get started.

OpenOffice is the quickest option for me.
 
Status
Not open for further replies.