Solved

Find and Replace a list of strings in a text file?

Posted on 1999-01-10
2
127 Views
Last Modified: 2010-04-06
Hi,
I have a stringlist of whole words that are either all Upper Case, all Lower Case or all  first words are capitalized.
Now ,I want to find these strings (must be whole words) in a text file, check to see if the case matches the stringlist and if not change it to match.

Any ideas?
0
Comment
Question by:martin_g
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 50 total points
ID: 1355802
Use BREPLACE - a batch replace program - from dsp (http://sinsite.icm.edu.pl/delphi). Punch in breplace into the search engine to find it quick (or try this, but I'm not sure if it will work... http://ftp/d10free/breplace.zip).

Its free and has source.

Cheers,

Raymond.
0
 
LVL 1

Author Comment

by:martin_g
ID: 1355803
Thanks, that did the trick!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now