Solved

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

Posted on 1999-01-10
2
130 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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