Page 1 of 1

Problems with Search and Replace

Posted: Thu Jan 10, 2008 9:32 pm
by gwgs
If doing a search (and replace) for a string that falls at the end of a line (with or without whitespace at end), and "Match whole words only" is ticked, then the search string will not be found.

e.g. search for v5

in line below it won't be found
name v1 v2 v3 v4 v5
but in the following line it will
name v1 v2 v3 v4 v5 v6

It happens with simple string searches and regular expressions

Thanks in advance

Grant Smith

Posted: Fri Jan 11, 2008 1:31 am
by jussij
Hi Grant,

Unfortunately I could not replacte this error :(

I'm using the Zeus 3.96 m version and tried the following:

Step #1: File new

Step #2: Paste in the following code into the new document:

Code: Select all

name v1 v2 v3 v4 v5 
name v1 v2 v3 v4 v5 v6  
Note:Each of these lines above has whitespace at the end of line.
Step #3: Bring up the Search/Replace dialog

Step #4: Zet the search text to v5 and replace text to test

Step #5: Tick "Match whole words only" option

Step #6: Hitting the Search button works

Step #7: Hitting the Replace button works

Is there some specific to your case that I am not doing :?:

Cheers Jussi

Posted: Sun Jan 13, 2008 8:38 pm
by gwgs
hmmm ... it's working for me now, but definitely wasn't earlier. If it occurs again i'll try and work out how to replicate it.

Thanks for the reply

Grant