Topic: Search and Replace VIC with spaces but not VICTOR (1 of 2), Read 9 times
Conf: Search and Replace
From: Jock Blair
Date: Thursday, October 02, 2008 08:51 PM

Hi All,
I'm sure this is just a brain fade some where. I want to search and replace "VIC" in a block of text I have the code to do this but it replaces VIC in VICTOR which I do not what to do.
So "VIC" will become " " but I want to leave "VICTOR".
Hope this makes sense.
Regards,
Jock.

 


Topic: Re: Search and Replace VIC with spaces but not VICTOR (2 of 2), Read 9 times
Conf: Search and Replace
From: Christian Ziemski
Date: Friday, October 03, 2008 02:20 AM

On 03.10.2008 02:57 in vtech-search-replace Jock Blair wrote:
>
> I want to search and replace "VIC" in a block of text I have the code
> to do this but it replaces VIC in VICTOR which I do not what to do.
> So "VIC" will become " " but I want to leave "VICTOR".

You can try to use word separators as delimiters like "|iVIC|i"

There are several possibilities to use delimiters during a
search/replace (|i, |s, |x, ...)

Have a look at the online help "Search and Replace" - "Complete list of
Pattern Matching codes"

Christian