Simon

On Friday, November 22, 2002, 2:14:52 PM, you wrote:
> I  think  the assumption is that you will know what text you want to replace
> with before you search. Anyhow, lets say that you wanted to replace the word
> "cat"  with  "dog"  you could position the cursor in front of the word "cat"
> and  hit CTRL+F7 and the search and replace window will pop up with "cat" in
> the  'Text  to find' field. You then just type "dog" into the 'Replace with'
> field  and  hit  the  'Replace  all' button, or hit OK button to replace the
> first occurrence.

What I actually had in mind was using regular expressions to find a
pattern, and then modify that found text. At the time I was looking to
indent a section of text (quoted from a previous message), by "finding"
each line and adding a fixed number of spaces before it. However there
are probably a million and one things you could do with a regex
find-and-replace if only you could include the text pattern you just
found.

Robin

--
Robin Anson
Using The Bat! v1.62/Beta7 on Windows 2000 5.0 Build 2195
Service Pack 3


________________________________________________
Current version is 1.61 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to