A better find and replace function

2006-09-28 Thread Robert Sneidar
This may interest some of you. You may have stumbled across something with the replace command. Let's say I have a chunk that contains the word blah. I want to replace all occurrences of blah with noblah which those of you who are astute see contains the word it replaces. If I call the

Re: A better find and replace function

2006-09-28 Thread Ken Ray
On 9/28/06 1:12 AM, Robert Sneidar [EMAIL PROTECTED] wrote: What I needed was something that would replace the WORD blah with the WORD noblah, ignoring words that CONTAIN blah, including subsequent search and replace executions. Bob, you can use replaceText with regular expressions to get the

Re: A better find and replace function

2006-09-28 Thread Scott Rossi
Recently, Robert Sneidar wrote: This may interest some of you. You may have stumbled across something with the replace command. Let's say I have a chunk that contains the word blah. I want to replace all occurrences of blah with noblah which those of you who are astute see contains the word

Re: A better find and replace function

2006-09-28 Thread Robert Sneidar
Hmmm nice. I have not quite figured out regular expressions yet. I will have a look at them again. I did need a function so I could exclude comment lines which might inadvertently look for things I am trying to replace (like empty with foxEMPTY in my Foxpro Functions library). Still,